Indexed
Dev

Debugging MCP

Diagnose and fix the most common Indexed MCP server issues — startup errors, PATH problems, and connection failures.

Debugging MCP

By the end of this guide, you will be able to diagnose and resolve the most common MCP server issues: startup failures, PATH problems, tools not appearing in clients, and connection errors.

Prerequisites

  • Indexed installed
  • At least one collection created (indexed index inspect should show results)

Start the Server Manually

The first debugging step is always to start the MCP server directly and read the output. This isolates problems that would otherwise be invisible inside a client.

Terminal
indexed mcp run

Healthy startup: the server prints FastMCP's own banner (suppress it with --no-banner) and then waits for a client on stdio. It does not list collections at startup.

Not a startup error: a No collections found message comes from CLI commands (indexed index search, indexed index inspect, indexed index update) when nothing has been indexed yet — the MCP server itself starts fine with zero collections. Create a collection with indexed index create files -c my-docs -p ./docs first.

A missing config.toml is not an MCP startup error — the server tolerates absent or unreadable configuration and starts with zero collections. If setup itself failed, run indexed init once to create the data directories and download the model (see Quick Start).

Press Ctrl+C to stop the server once you've confirmed it starts.

Use the MCP Inspector

indexed mcp dev starts the MCP server with a built-in browser UI that lets you call search and search_collection directly, without involving any client:

Terminal
indexed mcp dev

indexed mcp dev shells out to the MCP Inspector; the Inspector prints its own UI URL and port — read them from your terminal.

In the browser UI:

  1. Select the search tool from the tool list
  2. Enter a query value (e.g., "authentication guide")
  3. Click Run

A successful call and response — captured from a real docs-demo collection. The search tool takes only the query, so the Inspector always answers at the server's configured limits (max_docs 10 and max_chunks 30 by default). This is the same object, printed by the command below with -l 1 so only one document appears here:

Terminal
indexed index search "authentication guide" -l 1 --json
{
  "schema": "indexed.search/1",
  "query": "authentication guide",
  "counts": {
    "documents": 1,
    "hits": 3
  },
  "collections": [
    "docs-demo"
  ],
  "collection_errors": [],
  "documents": [
    {
      "collection": "docs-demo",
      "source_type": "localFiles",
      "id": "runbook.md",
      "url": "file:///home/agent/demo-corpus/demo/runbook.md",
      "score_kind": "l2_squared",
      "hits": [
        {
          "relevance": 0.1457,
          "score": 1.7085,
          "locator": {
            "kind": "document"
          },
          "text": "runbook.md"
        },
        {
          "relevance": 0.1078,
          "score": 1.7843,
          "locator": {
            "kind": "headings",
            "headings": [
              "Operations runbook",
              "Paging"
            ]
          },
          "text": "Operations runbook > Paging\nCritical alerts page the primary on call. A page that is not acknowledged within five minutes escalates to the secondary."
        },
        {
          "relevance": 0.0944,
          "score": 1.8112,
          "locator": {
            "kind": "headings",
            "headings": [
              "Operations runbook",
              "On call handover"
            ]
          },
          "text": "Operations runbook > On call handover\nThe outgoing on call engineer posts a handover note in the operations channel before leaving: open incidents, recent deploys, and anything scheduled for the next twelve hours."
        }
      ]
    }
  ]
}

At those defaults the Inspector call {"query": "authentication guide"} returns this object with 3 documents and 13 hits for the docs-demo store it was captured from, rather than the 1 and 3 above — same shape, same field meanings.

This is the documented shape, not a debug-only one: search_collection answers with the same object restricted to one collection, and indexed index search --json prints the identical payload. Field-by-field detail is in MCP commands → search and Index commands → Search output.

If the call succeeds here but the client still doesn't work, the problem is in the client configuration — not in Indexed itself.

Check Your PATH

The most common failure mode for uv tool and pip installs is that the indexed binary is on a PATH that your client doesn't inherit. Verify the binary is findable:

Terminal
which indexed
echo $PATH

Expected output of which indexed:

/Users/you/.local/bin/indexed

If which indexed returns nothing, the binary isn't on your PATH. Add the install location (for uv tool that is the uv tool bin directory, usually ~/.local/bin) to your PATH and restart your shell, then try again.

If which indexed returns a path but your client still can't find it, use the full absolute path in your client config instead of "command": "indexed":

{
  "mcpServers": {
    "indexed": {
      "command": "/Users/you/.local/bin/indexed",
      "args": ["mcp", "run"]
    }
  }
}

Common Errors and Fixes

ErrorLikely CauseFix
command not found: indexedindexed not on PATH inherited by clientUse full binary path in client config; run which indexed to find it
No collections foundNo collections have been createdRun indexed index create <connector> -c <name> ...
Connection refusedServer not started, or wrong transport/portRun indexed mcp run manually to check startup; verify transport matches client expectations (remember -h on mcp run is --host, not help — use --help for usage)
Tools not appearing in clientClient didn't restart after config change, or config has JSON errorsFully quit and relaunch the client; validate JSON syntax
Slow first responseEmbedding model loading into memoryNormal behavior on first query; subsequent queries are fast

HTTP Transport Testing

If you're using the HTTP transport (e.g., for Docker or remote access), verify the server independently using curl before involving any client:

Terminal
indexed mcp run --transport http --port 8000

In another terminal, talk to the MCP endpoint directly. Over HTTP the MCP endpoint is FastMCP's default path, /mcp (indexed mcp run passes no custom path); there is no separate REST /tools endpoint. Confirm the server with indexed mcp dev (the Inspector lists the live tools), or with a JSON-RPC call:

Terminal
curl -sN -H 'Accept: application/json, text/event-stream' \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' \
  http://127.0.0.1:8000/mcp

That returns a JSON-RPC envelope whose result.tools array lists search and search_collection.

If the request fails but the server started without errors, check your firewall or that the port isn't already in use:

Terminal
lsof -i :8000

What's Next

On this page