Token Context MCP runs on your own machine — the client starts it, so there is no endpoint to ping. 585 installs a week from pypi. Last commit 28 Oct 2026.
On-demand, local code-context MCP server for AI coding agents with Tree-sitter AST.
We read the source, 2 d ago · rules 995398eba69f
What this server is able to do. For an MCP server this is often the job itself — a terminal server runs commands because that is what it is for. Listed so you know what you are plugging in, not as an accusation.
completed = subprocess.run(
norm_target = posixpath.normpath(posixpath.join(source_dir, target_mod))
Is this your server and something here is wrong? Tell us — corrections are free and do not require a plan.
We found places where it runs commands, builds paths or queries from values it is given. None of that is a flaw by itself — it becomes one when the code changes, and code changes quietly between releases. We re-read it on every one.
This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.
claude mcp add token-context-mcp -- uvx token-context-mcp
{
"mcpServers": {
"token-context-mcp": {
"command": "uvx",
"args": [
"token-context-mcp"
]
}
}
}
[mcp_servers.token-context-mcp]
command = "uvx"
args = ["token-context-mcp"]
{
"mcpServers": {
"token-context-mcp": {
"command": "uvx",
"args": [
"token-context-mcp"
]
}
}
}
{
"servers": {
"token-context-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"token-context-mcp"
]
}
}
}
Deterministic code map for AI coding agents: a tree-sitter call graph with exact file:line over MCP.
Local-first codebase intelligence MCP server for AI coding agents.
Curated, on-demand memory for AI coding agents. Cuts Claude Code token cost per session.
Code knowledge graph over MCP: token-budgeted context for AI coding agents.
Analyzes codebases with tree-sitter and generates AGENTS.md files for AI coding agents.
Local long-term memory MCP server (SQLite) for AI coding agents — OpenCode, Claude Code, Cursor
Token-bounded repository context for coding agents over MCP.
Semantic code graph MCP server for coding agents
Answers built from our own checks of this server.