Skip to main content

Local MCP code exploration server prototypes

Project description

code-explorer-mcp

A local FastMCP server that provides deterministic code-exploration primitives for Python and TypeScript repositories.

Parsing behavior notes

  • Python and TypeScript class parsing intentionally expose nested classes only one level deep. A top-level class may include direct inner_classes, but classes nested deeper than that are ignored.

Client setup

This server inspects the current working directory by default, or an explicit path when you pass --path.

Recommended install

Install the server as a tool:

  • uv tool install code-explorer-mcp

This makes code-explorer-mcp and code-explorer-node-setup available as global commands if your uv tool bin directory is on PATH.

If you prefer pipx:

  • pipx install code-explorer-mcp

TypeScript parser setup

Python parsing works after install. TypeScript parsing also requires Node.js and npm plus one bootstrap step:

  1. Install Node.js and npm.
  2. Run:
    • code-explorer-node-setup

code-explorer-node-setup checks that node and npm are available, then installs the TypeScript parser runtime inside the installed package.

Run the server

  • Installed package: code-explorer-mcp
  • Installed package with explicit target repo: code-explorer-mcp --path /path/to/repo
  • Local checkout: uv run code-explorer-mcp
  • Local checkout with explicit target repo: uv run code-explorer-mcp --path /path/to/repo

Example MCP client config

Claude Code:

claude mcp add --transport stdio code-explorer -- code-explorer-mcp --path /path/to/repo

Generic stdio configuration:

{
  "mcpServers": {
    "code-explorer": {
      "command": "code-explorer-mcp",
      "args": ["--path", "/path/to/repo"]
    }
  }
}

If you installed with pipx, the command stays code-explorer-mcp and the setup command is code-explorer-node-setup.

Install from source

For local development or GitHub installs:

  1. Sync Python dependencies:
    • uv sync
  2. Install the Node dependencies required by the TypeScript parser runtime:
    • uv run code-explorer-node-setup
  3. Run the server from the repository you want to inspect:
    • uv run code-explorer-mcp
    • or from anywhere with an explicit target: uv run code-explorer-mcp --path /path/to/repo

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

code_explorer_mcp-0.2.0.tar.gz (31.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

code_explorer_mcp-0.2.0-py3-none-any.whl (28.4 kB view details)

Uploaded Python 3

File details

Details for the file code_explorer_mcp-0.2.0.tar.gz.

File metadata

  • Download URL: code_explorer_mcp-0.2.0.tar.gz
  • Upload date:
  • Size: 31.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for code_explorer_mcp-0.2.0.tar.gz
Algorithm Hash digest
SHA256 432b02d04c9624322c04b41b5d6a84224ebf8df6d6a7a13cfcf3a1b7b0f33661
MD5 7ac57d293dd6791e399b96e2bc7b504b
BLAKE2b-256 4203ac14a1f9326912c660495f5b0a3aac0082322308de4414cdc1e5784a80a6

See more details on using hashes here.

Provenance

The following attestation bundles were made for code_explorer_mcp-0.2.0.tar.gz:

Publisher: publish-pypi.yml on sirknigget/code-explorer-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file code_explorer_mcp-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for code_explorer_mcp-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a2a3570ce18869cae9e5904d0ab809d53fd50b324d73d71debbe55af995c147d
MD5 b82f748bfafd4e56f13c9c00a34f889b
BLAKE2b-256 c5caab94cead27d74c257958c35c02562e9a61cc96c421ae2a4d5d0bb416da82

See more details on using hashes here.

Provenance

The following attestation bundles were made for code_explorer_mcp-0.2.0-py3-none-any.whl:

Publisher: publish-pypi.yml on sirknigget/code-explorer-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page