# Trail Code (MCP server)

> 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.

Trail-code gives Claude Code, Cursor, Codex and other coding agents a map of your code, and what your team has learned about it.

## Key facts

| Fact | Value |
|---|---|
| Repository | https://github.com/trailhq/Trail-Code |
| GitHub stars | 10,761 |
| License | MIT |
| Language | TypeScript |
| Transport | stdio |
| Packages | npm: @nanonets/graft |
| Remote URL | none |
| Needs API key | no |
| Official | no |
| Works with | Claude Desktop, Claude Code, Cursor, VS Code |
| Category | Developer tools |
| Latest release | none |
| Last commit | Oct 26, 2026 |

## Install

### Claude Desktop (claude_desktop_config.json)

```json
{
  "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

```sh
claude mcp add --transport stdio trail-code -- npx -y @nanonets/graft
```

### Cursor (.cursor/mcp.json)

```json
{
  "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 (.vscode/mcp.json)

```json
{
  "servers": {
    "trail-code": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@nanonets/graft"
      ]
    }
  }
}
```

Config formats checked against the official docs on 2026-10-07.

## Similar MCP servers

- [Figma Context MCP](https://appsgit.com/mcp-servers/figma-context-mcp): Give your coding agent access to your Figma data. (16,069 stars, MIT, needs API key)
- [Desktop Commander](https://appsgit.com/mcp-servers/desktop-commander): MCP server for terminal commands, file operations, and process management. (10,127 stars, MIT)
- [Keploy](https://appsgit.com/mcp-servers/keploy): End-to-end API testing — generate and run tests from OpenAPI, curl, Postman, or real user traffic. (18,752 stars, Apache-2.0, official, needs API key)
- [Mobile MCP](https://appsgit.com/mcp-servers/mobile-mcp): MCP server for iOS and Android Mobile Development, Automation and Testing. (9,992 stars, Apache-2.0)
- [Compiler Explorer](https://appsgit.com/mcp-servers/compiler-explorer): Compile code with thousands of compilers, inspect the assembly, and share godbolt.org links. (19,150 stars, BSD-2-Clause, official)
- [Mobilerun](https://appsgit.com/mcp-servers/mobilerun): Control real Android and iOS devices with LLM agents — tap, swipe, type, automate flows. (9,815 stars, MIT, needs API key)

---

Canonical page: https://appsgit.com/mcp-servers/trail-code
Source: appsgit (https://appsgit.com), the app store for github. Data from the GitHub API, refreshed daily.
Machine access: JSON API https://appsgit.com/api/v1/apps (OpenAPI: https://appsgit.com/openapi.json), MCP server https://mcp.appsgit.com/mcp, full index https://appsgit.com/llms-full.txt.
