Indexed
Reference

MCP commands

indexed mcp * commands, transports, MCP tools, and client setup pointers.

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 run defines -h / --host as the bind address for http, sse, and streamable-http. It is not a short form of “show help.” The indexed mcp group has no options of its own.
  • Help: indexed mcp run --help, indexed mcp --help, or indexed --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 8000

indexed 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 inspect

With --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]
FlagTypeRequiredDefaultDescription
-t, --transportstringNostdiostdio, http, sse, or streamable-http
-h, --hoststringNo127.0.0.1Bind address for HTTP-based transports (not the same as --help on the top-level indexed command)
-p, --portintNo8000Port for HTTP/SSE/streamable-http
--log-levelstringNoINFODEBUG, INFO, WARNING, or ERROR
--no-bannerflagNooffDisable 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 8000

Startup 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
FlagDescription
--ui-portPort for the MCP Inspector UI
--server-portPort for the MCP Inspector proxy server
--inspector-versionMCP 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

TransportCommandUse Case
stdio (default)indexed mcp runClaude, Cursor, Copilot, Codex, and other stdio MCP clients
HTTPindexed mcp run --transport http --port 8000Docker, remote access, HTTP tunnels
SSEindexed mcp run --transport sseServer-Sent Events streaming clients
Streamable HTTPindexed mcp run --transport streamable-httpNewer HTTP streaming protocol

MCP tools

Indexed exposes two tools via the Model Context Protocol.

Search across all collections simultaneously.

Parameters

ParameterTypeRequiredDescription
querystringYesNatural 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 keyMeaning
schema"indexed.search/1" on a success payload. Branch on this, never on whether a key happens to be present.
queryThe query as submitted.
counts{"documents": n, "hits": n}.
collectionsCollections 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_errorsAlways present, [] when nothing failed; {"collection", "error"} per collection that failed. A failed collection never reads as "no matches".
documentsMatched 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

ParameterTypeRequiredDescription
collectionstringYesName of the collection to search
querystringYesNatural 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 patternNameReturns
resource://collectionsCollectionsListAll collection names
resource://collections/statusCollectionsStatusListStatus for every collection
resource://collection/{name}CollectionStatusStatus 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 = false

Client setup

On this page