search
Pack: trakt · Endpoint: https://gateway.pipeworx.io/trakt/mcp
Full-text search across Trakt’s movie, TV show, episode, person, and list catalog. Returns ranked matches with Trakt IDs usable in get_movie/get_show. Filter by type, year range, genre, country, or language.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | yes | Search term |
type | string | no | movie | show | episode | person | list (comma-sep ok) |
fields | string | no | Restrict matched fields (title | tagline | overview | people | translations | aliases | …) |
years | string | no | Restrict to year/range (e.g., “1999” or “1999-2005”) |
genres | string | no | Genre slug filter (comma-sep ok) |
countries | string | no | Country code filter (comma-sep) |
languages | string | no | Language code filter |
page | number | no | 1-based page (default 1) |
limit | number | no | 1-100 (default 10) |
Example call
Arguments
{
"query": "The Matrix"
}
curl
curl -X POST https://gateway.pipeworx.io/trakt/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search","arguments":{"query":"The Matrix"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('search', {
"query": "The Matrix"
});
More examples
{
"query": "Breaking Bad",
"type": "show",
"years": "2008-2013",
"limit": 5
}
Response shape
Always returns: items, count
| Field | Type | Description |
|---|---|---|
items | array | Array of search results with score and matched object |
count | integer | Number of items returned. |
Full JSON Schema
{
"type": "object",
"properties": {
"items": {
"type": "array",
"description": "Array of search results with score and matched object",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Result type: movie, show, episode, person, or list"
},
"score": {
"type": "number",
"description": "Relevance score for the match"
},
"movie": {
"type": "object",
"description": "Movie object if type is movie"
},
"show": {
"type": "object",
"description": "Show object if type is show"
},
"episode": {
"type": "object",
"description": "Episode object if type is episode"
},
"person": {
"type": "object",
"description": "Person object if type is person"
},
"list": {
"type": "object",
"description": "List object if type is list"
}
},
"required": [
"type",
"score"
]
}
},
"count": {
"type": "integer",
"description": "Number of items returned."
}
},
"required": [
"items",
"count"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"trakt": {
"url": "https://gateway.pipeworx.io/trakt/mcp"
}
}
}
See Getting Started for client-specific install steps.