Codesurface logo

Codesurface

Indexes public APIs across supported languages and exposes compact MCP lookups for search, signatures, classes, stats, and reindexing.

Install Codesurface

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": {
    "codesurface": {
      "command": "uvx",
      "args": [
        "codesurface"
      ]
    }
  }
}

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

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx codesurface

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The codesurface MCP server indexes public classes, methods, properties, fields, and events from a codebase, then exposes that API through compact MCP responses. It parses C#, C++ headers, Go, Java, Python, TypeScript, and JavaScript files, with language detection available by default. Use it when an agent needs API names, signatures, class members, or source line references without scanning entire files. Incremental reindexing updates only changed, new, or deleted files.

Use cases

  • Search a large codebase for public APIs by keyword
  • Retrieve exact method signatures before writing code
  • Inspect every public member of a class
  • Read targeted source lines after an API lookup
  • Refresh an index after source files change

Key features

  • Indexes public classes, methods, properties, fields, and events
  • Supports C#, C++, Go, Java, Python, TypeScript, and JavaScript
  • Provides keyword, signature, class, statistics, and reindex tools
  • Returns file paths and line ranges for targeted reads
  • Supports path filters, test inclusion, exclusions, and language selection

Tools5

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

Self-reported~52 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.

26/26 checks healthy over the last 112d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 8d ago via OSV.dev · codesurface (PyPI)

Adoption & maintenance

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

GitHub stars21Stargazers on the source repository.
Last commit4mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed5Callable tools this server registers over MCP.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How Codesurface works

What the codesurface MCP server does

The codesurface MCP server creates a searchable index of a project's public API. It extracts declarations such as classes, methods, properties, fields, and events from supported source files, then returns structured reference information through MCP tools. Results include file paths and line ranges, allowing an agent to follow up with a narrow source read when it needs implementation details.

Supported inputs include C# files, C++ headers, Go, Java, Python, TypeScript, and JavaScript. The project can be a source directory such as a .NET tree, Python package, Node.js application, Spring Boot project, or Unity scripts folder. Languages are detected automatically unless a parser is selected explicitly.

How it works

Indexing runs when the process starts and records public API information from the selected project directory. The search tool locates APIs by keyword, while get_signature returns the exact signature for a symbol name or fully qualified name. get_class returns a reference card containing the public members of a class. get_stats reports index information such as file and record counts and namespace breakdowns.

The reindex tool performs an incremental update based on modification times. It reparses changed or newly added files and removes entries for deleted files. Reindexing also runs automatically when a query misses. Search, signature, and class lookups can be scoped with a directory prefix or exact file path, and test files can be included with the include_tests option.

Setup and configuration

Run the codesurface MCP server with the codesurface package through uvx, passing --project and the directory to index. A typical MCP configuration uses a server entry with command set to uvx and arguments containing codesurface, --project, and the source directory.

The server skips common generated, vendored, build, virtual-environment, and version-control directories by default. Add further exclusions in a project-root .codesurfaceignore file, using one glob per line, or pass comma-separated patterns with --exclude. Use --include-submodules to index Git submodules, or --language to select one parser instead of automatic detection. Each project requires a separate server instance and name when multiple codebases are needed.

Tools and capabilities

The codesurface MCP server exposes five tools:

  • search finds APIs by keyword.
  • get_signature retrieves an exact signature by name or fully qualified name.
  • get_class lists a class and its public members.
  • get_stats summarizes the indexed codebase.
  • reindex refreshes the index incrementally.

The intended workflow is API lookup first, followed by targeted reads at the returned line numbers. This keeps implementation inspection separate from public API discovery and avoids requiring an agent to read complete source files for basic signature or member questions.

Limitations and notes

The index covers public API declarations rather than method bodies or general implementation logic. Agents still need ordinary file-reading or search tools for control flow, private implementation details, and other source content not represented in the index. C++ support is described for header extensions, including .h, .hpp, .hxx, and .h++.

Test files are excluded from filtered lookups by default and are detected using common directory and filename patterns. Git worktrees and submodules are skipped unless submodule indexing is enabled. The server is intended for local MCP clients and does not describe a hosted endpoint or external API credential requirement.

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 Codesurface

Configure an MCP server that runs `uvx` with the `codesurface` package, then pass `--project` and the directory containing the source files.

It supports C#, C++ headers, Go, Java, Python, TypeScript, and JavaScript.

Add glob patterns to a `.codesurfaceignore` file at the project root or pass comma-separated patterns with the `--exclude` option.

Use the `reindex` tool for an mtime-based incremental update. It also runs automatically when a query misses.

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 PreviewCodesurface AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/codesurface?style=directory)](https://allmcps.com/mcp/codesurface)
HTML Embed
<a href="https://allmcps.com/mcp/codesurface"><img src="https://allmcps.com/api/badge/codesurface?style=directory" alt="Codesurface on AllMCPs" /></a>