Skip to content

MCP Server

opentrace mcp starts a Model Context Protocol server over stdio. Any MCP-compatible client (Claude Code, Cursor, Copilot, Gemini, etc.) can connect to it to query the knowledge graph.

Prerequisites

  • uv — the examples below use uvx, which downloads and caches opentraceai on first use with no global install needed. See the uv install guide.
  • A knowledge graph built with opentrace index — see CLI.

Claude Code

Use the Claude Code Plugin — it configures the MCP server automatically.

Gemini CLI

gemini mcp add opentraceai uvx opentraceai mcp

Other Clients (Cursor, Copilot, etc.)

Add the following to your client's MCP config:

{
    "mcpServers": {
        "opentrace": {
            "type": "stdio",
            "command": "uvx",
            "args": ["opentraceai", "mcp"]
        }
    }
}

What Next


Other install paths: Browser · CLI · MCP · Plugin · Source