Grafyx logo

Grafyx

Maps Python, TypeScript, and JavaScript codebases into searchable graphs for AI-assisted code navigation and impact analysis.

Install Grafyx

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "grafyx": {
      "command": "uvx",
      "args": [
        "--from",
        "grafyx-mcp",
        "grafyx"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 14 tools correctly ().

Overview

Grafyx MCP server parses Python, TypeScript, and JavaScript projects into a relationship graph that AI assistants can query over MCP stdio. It exposes tools for inspecting symbols, files, modules, inheritance, dependencies, call chains, conventions, and unused code. A file watcher updates the graph as source files change, while semantic search helps locate code by natural-language descriptions. Reach for it when an agent needs architectural context beyond reading individual files.

Use cases

  • Trace callers and callees before changing a function
  • Inspect dependency impact for a planned refactor
  • Find code related to a feature described in natural language
  • Review inheritance relationships and subclass usage
  • Detect unused symbols and project conventions

Key features

  • Semantic project graph for Python, TypeScript, and JavaScript
  • Function, class, file, module, and project context tools
  • Call-chain and dependency impact analysis
  • Natural-language related-code and related-file search
  • Live graph updates through file watching
  • Runtime project switching

Tools14

What Grafyx lets your agent do. Expand a tool for its parameters.

Verified live~2.4k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

17/17 checks healthy over the last 80d

What it can do

From the 14 tools this server returned when we ran it.

Runs commands · 1Read-only tools · 13
Network at startup2 connections
Files written at startup1

Observed 2026-10-27 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 5d ago via OSV.dev · grafyx-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars4Stargazers on the source repository.
Last commit3mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed14Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Grafyx works

What Grafyx MCP server does

Grafyx MCP server gives an AI coding assistant structured access to a codebase’s relationships. Instead of limiting the assistant to raw file contents, it provides project structure, symbol details, imports, callers, callees, inheritance, dependencies, and usage information.

The server supports Python files with .py and .pyi extensions, along with TypeScript and JavaScript files using their common source extensions. Languages are detected automatically, or they can be selected explicitly when starting the command.

Its tools support several levels of code navigation. An assistant can inspect the entire project, narrow the view to a directory or module, examine a function or class, trace calls, inspect dependency impact, find subclasses, and identify unused symbols. Natural-language search is available for locating related code and files based on symbols and descriptions.

How it works

At startup, Grafyx parses the selected project into a semantic graph using Graph-sitter, which is based on tree-sitter. A FastMCP server exposes the graph through 14 MCP tools over standard input and output. The served project can also be changed at runtime with set_project.

Watchdog monitors source changes when file watching is enabled. After an edit, Grafyx reparses the affected project after a short debounce period, allowing connected agents to query an updated graph. Multiple agents can connect to one instance serving the same project; changes made by one agent become available to the others after the watcher updates the graph.

find_related_code uses a code-embedding model through fastembed and ONNX on the CPU. The default encoder is downloaded on first use and cached locally. The encoder can be changed with GRAFYX_ENCODER, including the default jina-v2 and the alternative coderankembed.

Setup and configuration

Install with uvx without a separate package installation, or install the grafyx-mcp package with pip and launch the grafyx command. The README provides MCP configuration examples for Claude Code, Cursor, Windsurf, Cline, and VS Code.

The command accepts --project to choose the analyzed directory, --languages for a comma-separated language list, --ignore for additional ignored patterns, --no-watch to disable live updates, and --verbose for debug logging. It analyzes the current directory by default. Common generated and dependency directories, including node_modules, .git, virtual environments, build outputs, and cache directories, are ignored by default.

Limitations and notes

Windows users are directed to run Grafyx through WSL and configure the MCP client to launch it there.

The documented language support is limited to Python, TypeScript, and JavaScript. The embedding model is downloaded on first use, so semantic search has an initial model setup step and local cache requirements. File watching can be disabled, but doing so removes automatic graph refreshes; refresh_graph remains available for manual reparsing.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Grafyx

Grafyx is an MCP server that connects AI coding assistants to a parsed graph of Python, TypeScript, and JavaScript codebases. Its main tools provide project, file, function, class, module, dependency, call-graph, convention, related-code, subclass, and unused-symbol analysis over MCP.

Install it with `uvx` using `uvx --from grafyx-mcp grafyx`, or install the `grafyx-mcp` package with pip and run `grafyx`. The README includes configuration examples for Claude Code, Cursor, Windsurf, Cline, and VS Code.

Grafyx supports Python, TypeScript, and JavaScript. It recognizes `.py`, `.pyi`, `.ts`, `.tsx`, `.js`, and `.jsx` files, and you can override automatic detection with the `--languages` option.

Yes, Grafyx works with Cursor through its MCP configuration. Add a `grafyx` server entry to `.cursor/mcp.json` for a project-specific setup or `~/.cursor/mcp.json` for a global setup, using `uvx` or the installed `grafyx` command.

Grafyx requires Linux for Graph-sitter, so Windows users should run it through WSL.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGrafyx AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/grafyx?style=directory)](https://allmcps.com/mcp/grafyx)
HTML Embed
<a href="https://allmcps.com/mcp/grafyx"><img src="https://allmcps.com/api/badge/grafyx?style=directory" alt="Grafyx on AllMCPs" /></a>