Codesurface MCP server
Indexes your codebase's public API and serves it via compact MCP tool responses.
21 stars
Reviews
Write oneNobody has reviewed Codesurface yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Codesurface tools (5)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
get_classGet a complete reference card for a class — all public members.
get_signatureLook up the exact signature of an API member by name or FQN.
get_statsGet a quick overview of the indexed codebase.
reindexIncrementally update the index by re-parsing only changed, new, or deleted files.
searchSearch the indexed API by keyword.
Public scan report
scanner v0.1.9 · 2026-09-27 · same rubric, same numbers if you re-run it
- Code scan14 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 61 days ago12/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How Codesurface compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 88/100
- higher than 75% of 48,273 servers
- Tools
- 5
- the typical server has 7
- Tools that change things
- 0%
- typical: 0%. Fewer write tools means less an agent can break
- GitHub stars
- 21
- more than 91% of 28,534 servers
What its tools let an agent do: 5 read
Install Codesurface in Claude Code, Cursor or VS Code
claude mcp add codesurface -- uvx codesurface
What the publisher says
From the Codesurface repository's README, as published. We do not edit it. Read it on GitHub
<!-- mcp-name: io.github.Codeturion/codesurface -->
codesurface
MCP server that indexes your codebase's public API at startup and serves it via compact tool responses, saving tokens vs reading source files.
Parses source files, extracts public classes/methods/properties/fields/events, and serves them through 5 MCP tools. Works with Claude Code, Cursor, Windsurf, or any MCP-compatible AI tool.
Supported languages: C# (.cs), C++ headers (.h, .hpp, .hxx, .h++), Go (.go), Java (.java), Python (.py), TypeScript/JavaScript (.ts, .tsx, .js, .jsx)
Quick Start
Add to your .mcp.json:
{
"mcpServers": {
"codesurface": {
"command": "uvx",
"args": ["codesurface", "--project", "/path/to/your/src"]
}
}
}Point --project at any directory containing supported source files (a Unity Assets/Scripts folder, a Spring Boot project, a .NET src/ tree, a Node.js/React project, a Python package, etc.). Languages are auto-detected.
Restart your AI tool and ask: "What methods does MyService have?"
CLAUDE.md Snippet
Add this to your project's CLAUDE.md (or equivalent instructions file). This step is important. Without it, the AI has the tools but won't know when to reach for them.
## Codebase API Lookup (codesurface MCP)
Use codesurface MCP tools BEFORE Grep, Glob, Read, or Task (subagents) for any class/method/field lookup. This applies to you AND any subagents you spawn.
| Tool | Use when | Example |
|------|----------|---------|
| `search` | Find APIs by keyword | `search("MergeService")` |
| `get_signature` | Need exact signature | `get_signature("TryMerge")` |
| `get_class` | See all members on a class | `get_class("BlastBoardModel")` |
| `get_stats` | Codebase overview | `get_stats()` |
Every result includes file path + line numbers. Use them for targeted reads:
- `File: Service.cs:32` → `Read("Service.cs", offset=32, limit=15)`
- `File: Converter.java:504-506` → `Read("Converter.java", offset=504, limit=10)`
Never read a full file when you have a line number. Only fall back to Grep/Read for implementation details (method bodies, control flow).Tools
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Codesurface: common questions
- Is Codesurface MCP server safe?
- Yes, by our scan: it is graded A (88/100). Read the Codesurface safety report
- How do I install Codesurface?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Codesurface need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Codesurface maintained?
- The last commit was 97 days ago (2026-07-28). The latest release is v0.8.0.
- How does Codesurface compare with other MCP servers?
- safety score 88/100 (higher than 75% of 48,273 servers); tools 5 (the typical server has 7); tools that change things 0% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.