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 useuvx, which downloads and cachesopentraceaion first use with no global install needed. See theuvinstall 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¶
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¶
- What tools does the MCP server expose? → Graph Tools
- Something not working? → Troubleshooting