Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Pharaoh

MCP server by Pharaoh-so Verified · pharaoh.so

Pharaoh maps codebases into knowledge graphs that coding agents can query for architecture, dependencies and blast radius. This npm package is its MCP proxy for headless setups like VPS, SSH, containers and CI.

  • Score 91
  • 2 stars
  • 2.7k a week
  • MIT
  • Updated

Install Pharaoh

Built from the published package, never by AI.

claude mcp add pharaoh -- npx -y @pharaoh-so/mcp

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Pharaoh in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the pharaoh block.

About

Pharaoh is an MCP server that maps codebases into queryable knowledge graphs for coding agents such as Claude Code, Cursor, Codex and OpenClaw. Instead of reading files one at a time, the agent can ask about blast radius, unused code, dependency chains and module structure. The graph holds functions, files, modules, dependencies and linked vision specs.

This npm package is a stdio-to-SSE proxy that lets Claude Code connect to Pharaoh in headless environments such as VPS, SSH, containers and CI, where no browser is available for OAuth. It signs in with the RFC 8628 device flow and stores credentials locally. The source says the proxy never sends your code or file text, and that only structural metadata is kept. It is aimed at developers who want architectural context in their coding agent.

Written from the project's README and checked against it.

Tools it gives your assistant

  • get_codebase_mapShows which modules exist and how they relate.
  • get_module_contextDescribes a module before the agent modifies it.
  • search_functionsChecks whether a function already exists somewhere in the codebase.
  • pharaoh_reconCombines map, module context, search and blast radius in one call.
  • get_blast_radiusShows what could break if a function, file or module changes.
  • pharaoh_accountChecks the plan, toggles PR Guard and triggers a refresh.
  • pharaoh_adminProvides org-level administration.

What you need

  • Node.js 18 or later
  • Claude Code or another MCP-compatible agent
  • A Pharaoh account
  • A GitHub login for authorization

Try asking

  • What breaks if I change this function?
  • Does a function that does this already exist in the repo?
  • Show me the modules in this codebase and how they relate.

Good to know

  • The device code expires after 15 minutes.
  • Only trusted server URLs should be used, since the proxy sends the auth token to the configured server.
  • Pharaoh stores structural metadata only, not source code.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Pharaoh

All alternatives →

Compare with GitDiagram, mockserver or XcodeBuildMCP

Pharaoh: common questions

Does Pharaoh send my source code to the server?

The source says the proxy never sends your code or file text. Pharaoh reads code through its GitHub App, keeps only structural metadata, and deletes the clone when mapping ends.

Why use this proxy instead of a direct connection?

The source says the proxy lets Claude Code reach Pharaoh in headless environments where a browser is not available for OAuth, by acting as a stdio-to-SSE relay.

Where are my credentials stored?

Credentials are saved at ~/.pharaoh/credentials.json with 0600 permissions. Tokens expire after 7 days and are refreshed automatically.

How do I install Pharaoh?

In Claude Code run claude mcp add pharaoh -- npx -y @pharaoh-so/mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Pharaoh the official server?

Pharaoh is published by pharaoh.so from its verified domain in the official MCP Registry.

Is Pharaoh free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is Pharaoh safe to use?

It scores 91 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to Pharaoh?

Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.

Does Pharaoh work with ChatGPT?

Yes. Add its server URL in ChatGPT as a custom connector. See MCP in ChatGPT.

Pharaoh Install

Add to stack

Loading.