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.
Install Pharaoh
Built from the published package, never by AI.
claude mcp add pharaoh -- npx -y @pharaoh-so/mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"pharaoh": {
"args": [
"-y",
"@pharaoh-so/mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"pharaoh": {
"args": [
"-y",
"@pharaoh-so/mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"pharaoh": {
"args": [
"-y",
"@pharaoh-so/mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add pharaoh -- npx -y @pharaoh-so/mcp{
"mcpServers": {
"pharaoh": {
"args": [
"-y",
"@pharaoh-so/mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add pharaoh npx -y @pharaoh-so/mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
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
ANo 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 →Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.
Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.
Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.
Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.
Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.
Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.
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.
