Graphlens MCP Server

Semantic code graph MCP server for coding agents

Local serverstdioPython

What is the Graphlens MCP server?

Connect Graphlens to Claude, Cursor or any other MCP client and it stops being a tab you switch to. Semantic code graph MCP server for coding agents. The graphlens mcp server is what makes that connection.

What the server does

A free, MIT-licensed MCP server that gives coding agents (Claude Code, Cursor, and compatible clients) a semantic code graph of your project — symbols, cross-file calls, references, imports and cross-language boundaries.

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • search — Find code by NAME, CONTENT, or MEANING — the one way in. Returns graph nodes with their signature (often enough to answer without a follow-up
  • relations — A symbol's neighbourhood in one call: callers, callees, implementors/subclasses, and non-call references — each with its signature. The
  • info — Read a specific target: a symbol (node id or name) → source + signature + location; a file path → its symbol outline

Installation

Installation goes through your MCP client rather than a global install: point it at graphlens-mcp on PyPI and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

Where it fits

This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Graphlens's toolset — search, relations, info — is a fair guide to whether it matches your workflow. It is maintained by Neko1313; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Graphlens's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
searchFind code by NAME, CONTENT, or MEANING — **the one way in**. Returns graph nodes with their signature (often enough to answer without a follow-up call). Content is matched literally, not as a regex. Scope with path_glob
relationsA symbol's neighbourhood in one call: callers, callees, implementors/subclasses, and non-call references — each with its signature. **The** impact-analysis tool ("what breaks if I change X?", "what implements X?")
infoRead a specific target: a symbol (node id or name) → source + signature + location; a file path → its symbol outline

How to install the Graphlens MCP server

{
  "mcpServers": {
    "graphlens": {
      "command": "uvx",
      "args": ["graphlens-mcp"]
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Example prompts to try

  • Use Graphlens to search.
  • Use Graphlens to relations.
  • Use Graphlens to info.

Frequently asked questions

It connects Graphlens to MCP-compatible AI assistants such as Claude and Cursor, exposing 3 tools (search, relations, info) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Graphlens directly.