MCP commands
MCP commands
Reference for indexed mcp * (and MCP tools). For global indexed options (before the subcommand), see Other commands — global options (top-level). For walkthroughs, see MCP Integration and MCP Setup.
Help vs. -h
indexed mcp rundefines-h/--hostas the bind address forhttp,sse, andstreamable-http. It is not a short form of “show help.” Theindexed mcpgroup has no options of its own.- Help:
indexed mcp run --help,indexed mcp --help, orindexed --help(top-level usage uses--help).
indexed mcp (command group)
indexed mcp --help lists subcommands run, dev, inspect, and docs (opens MCP documentation in your browser). The group itself takes no options: --transport, --host, --port, and --log-level exist only on mcp run:
indexed mcp run --transport http --host 127.0.0.1 --port 8000indexed mcp inspect
Print a summary of registered tools, resources, and prompts (human-readable by default). Use this as a quick smoke test after install.
indexed mcp inspect
indexed --simple-output mcp inspectWith --simple-output on the top-level indexed command, the summary includes a small JSON object (counts and server metadata) suitable for scripts.
indexed mcp run
Start the MCP server.
indexed mcp run [flags]| Flag | Type | Required | Default | Description |
|---|---|---|---|---|
-t, --transport | string | No | stdio | stdio, http, sse, or streamable-http |
-h, --host | string | No | 127.0.0.1 | Bind address for HTTP-based transports (not the same as --help on the top-level indexed command) |
-p, --port | int | No | 8000 | Port for HTTP/SSE/streamable-http |
--log-level | string | No | INFO | DEBUG, INFO, WARNING, or ERROR |
--no-banner | flag | No | off | Disable the startup banner |
Examples:
# Default stdio (for Claude Desktop, Cursor, Cline)
indexed mcp run
# HTTP server on default port
indexed mcp run --transport http --port 8000
# HTTP on all interfaces (for Docker)
indexed mcp run --transport http --host 0.0.0.0 --port 8000Startup output: on stdio the server prints FastMCP's own startup banner (suppress it with --no-banner). It does not list collections at startup — use indexed mcp inspect or the resource://collections resource for that.
indexed mcp dev
Start the MCP server with the MCP Inspector browser UI for testing and debugging.
indexed mcp dev
indexed mcp dev --ui-port 3000 --server-port 8001| Flag | Description |
|---|---|
--ui-port | Port for the MCP Inspector UI |
--server-port | Port for the MCP Inspector proxy server |
--inspector-version | MCP Inspector version to use |
Opens a local browser UI where you can call search and search_collection directly and inspect request/response payloads. See Debugging MCP for a walkthrough.
Transport options
| Transport | Command | Use Case |
|---|---|---|
| stdio (default) | indexed mcp run | Claude, Cursor, Copilot, Codex, and other stdio MCP clients |
| HTTP | indexed mcp run --transport http --port 8000 | Docker, remote access, HTTP tunnels |
| SSE | indexed mcp run --transport sse | Server-Sent Events streaming clients |
| Streamable HTTP | indexed mcp run --transport streamable-http | Newer HTTP streaming protocol |
MCP tools
Indexed exposes two tools via the Model Context Protocol.
search
Search across all collections simultaneously.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Natural language search query |
Example call
{
"tool": "search",
"arguments": {
"query": "how to handle authentication timeouts"
}
}Response shape
search and search_collection return the same documented payload as indexed index search --json — one shape for both surfaces, built by the same code, schema: "indexed.search/1". Read schema first; a tool result without it carries an error instead.
| Top-level key | Meaning |
|---|---|
schema | "indexed.search/1" on a success payload. Branch on this, never on whether a key happens to be present. |
query | The query as submitted. |
counts | {"documents": n, "hits": n}. |
collections | Collections that answered successfully, in search order. [] means none answered: either an empty store — which MCP answers with a success payload, collections: [] and collection_errors: [], not an error — or every collection the search reached failed, in which case each one appears in collection_errors. |
collection_errors | Always present, [] when nothing failed; {"collection", "error"} per collection that failed. A failed collection never reads as "no matches". |
documents | Matched documents, best first: collection, source_type, id, path/url, score_kind, and hits (relevance, score, locator, text). Document-level facts are stated once, not repeated per hit. |
search_collection answers an unknown collection name with {"error": "Collection 'x' not found or has no indexers"} — no type key. A collection that exists on disk but has no usable index (unreadable manifest, no indexers), and any request that fails as a whole, returns {"error": "…", "type": "MCPError"}. Neither carries schema.
Field-by-field detail, including every locator.kind: Index commands → Search output. Score semantics: Search Index.
search_collection
Search a specific collection by name.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
collection | string | Yes | Name of the collection to search |
query | string | Yes | Natural language search query |
Example call
{
"tool": "search_collection",
"arguments": {
"collection": "eng-tickets",
"query": "rate limiting implementation"
}
}Response
The same payload as search, restricted to the collection you passed in — every entry in documents came from it.
MCP resources
Read-only resource URIs expose collection metadata to MCP clients.
| URI pattern | Name | Returns |
|---|---|---|
resource://collections | CollectionsList | All collection names |
resource://collections/status | CollectionsStatusList | Status for every collection |
resource://collection/{name} | CollectionStatus | Status for one collection |
Status payloads include fields such as name, document/chunk counts, updated_time, last_modified_document_time, indexers, index_size, source_type, relative_path, and disk_size_bytes (some fields depend on config — e.g. include_index_size in [mcp]).
MCP server configuration ([mcp])
Optional defaults for the MCP server (see your Indexed config TOML):
[mcp]
host = "localhost"
port = 8000
log_level = "WARNING"
enable_async_pool = false
include_index_size = falseClient setup
- MCP Integration
- MCP Setup
- Quick Start for install and
indexed init