Trail Code
Trail Code is an MCP server that adds developer tools to AI assistants such as Claude Desktop, Claude Code and Cursor. Turbocharge Claude Code, Cursor, Codex, Gemini & every coding agent: faster, cheaper, with contextual understanding specific to your codebase. It has 10,761 GitHub stars, is released under the MIT license and runs locally with npx -y @nanonets/graft.
github.com/trailhq/Trail-Code (opens in a new tab)
Data as of from the GitHub API; description from the project's repository. Report an error
Install Trail Code
Generated from the server's published package. Replace your-value with your own values.
Claude Desktop
{
"mcpServers": {
"trail-code": {
"command": "npx",
"args": [
"-y",
"@nanonets/graft"
]
}
}
}Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.
Claude Code
claude mcp add --transport stdio trail-code -- npx -y @nanonets/graftCursor
{
"mcpServers": {
"trail-code": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@nanonets/graft"
]
}
}
}Project file; use ~/.cursor/mcp.json to enable it in every project.
VS Code
{
"servers": {
"trail-code": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@nanonets/graft"
]
}
}
}Config formats checked against the official docs on Oct 7, 2026: modelcontextprotocol.io (opens in a new tab), code.claude.com (opens in a new tab), cursor.com (opens in a new tab), code.visualstudio.com (opens in a new tab).
About Trail Code
Trail-code gives Claude Code, Cursor, Codex and other coding agents a map of your code, and what your team has learned about it.
- ai-agents
- claude-code
- code-graph
- context-engineering
- developer-tools
- knowledge-graph
- llm
- mcp
- mcp-server
- tree-sitter
Similar MCP servers
More developer tools MCP servers
Figma Context MCP
GLips/Figma-Context-MCP
Give your coding agent access to your Figma data.
Maintained · last commit Jun 24, 2026
Developer toolsTypeScriptDesktop Commander
wonderwhy-er/DesktopCommanderMCP
MCP server for terminal commands, file operations, and process management.
Active · last commit Oct 24, 2026
Developer toolsJavaScriptKeploy
keploy/keploy
End-to-end API testing — generate and run tests from OpenAPI, curl, Postman, or real user traffic.
Active · last commit Oct 26, 2026
OfficialDeveloper toolsGoMobile MCP
mobile-next/mobile-mcp
MCP server for iOS and Android Mobile Development, Automation and Testing.
Active · last commit Oct 25, 2026
Developer toolsTypeScriptCompiler Explorer
compiler-explorer/compiler-explorer
Compile code with thousands of compilers, inspect the assembly, and share godbolt.org links.
Maintained · last commit Oct 26, 2026
OfficialDeveloper toolsTypeScriptMobilerun
droidrun/mobilerun
Control real Android and iOS devices with LLM agents — tap, swipe, type, automate flows.
Active · last commit Oct 25, 2026
Developer toolsPython
How do I install the Trail Code MCP server?
Add the command npx -y @nanonets/graft to your MCP client: put it in claude_desktop_config.json for Claude Desktop, run claude mcp add for Claude Code, or add it to .cursor/mcp.json (Cursor) or .vscode/mcp.json (VS Code). The snippets on this page are ready to paste.
Is Trail Code free?
The server is open source under the MIT license, so running it is free. It does not declare any required API key.
Is Trail Code actively maintained?
The most recent commit was on Oct 26, 2026. appsgit only lists MCP servers with a commit in the last six months.