Skip to content
Grok

Token Context MCP for Grok

io.github.mck564/token-context-mcp

On-demand, local code-context MCP server for AI coding agents with Tree-sitter AST.

client:Grok transport:stdio runtime:pypi

Install Token Context MCP in Grok

.mcp.json (in your project root)

{
  "mcpServers": {
    "token-context-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "token-context-mcp"
      ]
    }
  }
}

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

Token Context MCP in other clients