prowlarr_get_indexers
Retrieve all configured indexers from Prowlarr to manage search sources for media content across *arr applications.
Instructions
Get all configured indexers in Prowlarr
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:1563-1583 (handler)MCP tool handler: checks if Prowlarr client is configured, calls getIndexers(), formats and returns indexer list as JSON response.case "prowlarr_get_indexers": { if (!clients.prowlarr) throw new Error("Prowlarr not configured"); const indexers = await clients.prowlarr.getIndexers(); return { content: [{ type: "text", text: JSON.stringify({ count: indexers.length, indexers: indexers.map(i => ({ id: i.id, name: i.name, protocol: i.protocol, enableRss: i.enableRss, enableAutomaticSearch: i.enableAutomaticSearch, enableInteractiveSearch: i.enableInteractiveSearch, priority: i.priority, })), }, null, 2), }], }; }
- src/index.ts:538-545 (registration)Registers the tool in the TOOLS array with name, description, and empty input schema (no parameters). Added conditionally if Prowlarr is configured.name: "prowlarr_get_indexers", description: "Get all configured indexers in Prowlarr", inputSchema: { type: "object" as const, properties: {}, required: [], }, },
- src/arr-client.ts:959-961 (handler)ProwlarrClient.getIndexers(): Makes API request to /indexer endpoint to fetch the list of configured indexers.async getIndexers(): Promise<Indexer[]> { return this['request']<Indexer[]>('/indexer'); }
- src/arr-client.ts:278-287 (schema)TypeScript interface defining the structure of an Indexer object returned by the API.export interface Indexer { id: number; name: string; enableRss: boolean; enableAutomaticSearch: boolean; enableInteractiveSearch: boolean; protocol: string; priority: number; added: string; }
- src/index.ts:82-84 (helper)Instantiates ProwlarrClient from configuration (URL and API key) if PROWLARR_URL and PROWLARR_API_KEY are set.case 'prowlarr': clients.prowlarr = new ProwlarrClient(config); break;