Skip to content
VS Code

mcp gtags server for VS Code

io.github.harshithsunku/mcp-gtags-server

Indexed C/C++ code navigation for AI agents — GNU Global (gtags) lookups over MCP, not grep scans.

client:VS Code transport:stdio runtime:pypi

Install mcp gtags server in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "gtags-mcp-root",
      "description": "GTAGS_MCP_ROOT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "gtags-mcp-auto-setup",
      "description": "GTAGS_MCP_AUTO_SETUP",
      "password": true
    }
  ],
  "servers": {
    "mcp-gtags-server": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-gtags-server"
      ],
      "env": {
        "GTAGS_MCP_ROOT": "${input:gtags-mcp-root}",
        "GTAGS_MCP_AUTO_SETUP": "${input:gtags-mcp-auto-setup}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

mcp gtags server in other clients