#mcp-server #mcp #code-analysis #llm

codeprysm-mcp

MCP server for AI-powered code exploration

1 unstable release

0.1.0 Jan 5, 2026

#1809 in Development tools


Used in codeprysm-cli

MIT license

1MB
19K SLoC

codeprysm-mcp

Crates.io Documentation License: MIT

MCP server for AI-powered code exploration.

Part of the CodePrism project.

Features

  • Model Context Protocol: Standard interface for AI assistants
  • Semantic Code Search: Natural language queries via search_graph_nodes
  • Graph Navigation: Traverse code relationships and dependencies
  • Auto-Indexing: Automatically generates graph if missing
  • Incremental Updates: Keeps index in sync with code changes

Installation

[dependencies]
codeprysm-mcp = "0.1"

# With GPU acceleration
codeprysm-mcp = { version = "0.1", features = ["metal"] }  # macOS
codeprysm-mcp = { version = "0.1", features = ["cuda"] }   # Linux/Windows

Usage

As a Library

use codeprysm_mcp::PrismServer;
use std::path::Path;

// Create and run the MCP server
let server = PrismServer::new(
    Path::new("/path/to/repo"),
    "http://localhost:6334",
).await?;

server.run().await?;

VS Code Integration

Create .vscode/mcp.json:

{
    "servers": {
        "codeprysm": {
            "type": "stdio",
            "command": "codeprysm",
            "args": ["mcp"]
        }
    }
}

Claude Desktop Integration

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "codeprysm": {
      "command": "codeprysm",
      "args": ["mcp", "--root", "/path/to/your/repo"]
    }
  }
}

MCP Tools

Tool Description
search_graph_nodes Semantic search for code entities
get_node_details Get detailed information about a node
get_node_relationships Find related nodes (calls, references, etc.)
get_file_contents Read source file contents

License

MIT License - see LICENSE

Dependencies

~187MB
~4.5M SLoC