Cordyceps Search
Traces frontend HTTP requests made with Axios and links them to backend endpoint definitions for cross-boundary API tracking.
Identifies and traces backend endpoints defined in Django, enabling cross-boundary API tracking from frontend HTTP calls.
Identifies and traces backend endpoints defined in FastAPI, enabling cross-boundary API tracking from frontend HTTP calls.
Identifies and traces backend endpoints defined in Flask, enabling cross-boundary API tracking from frontend HTTP calls.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Cordyceps SearchFind all callers of authenticate_user and assess the impact of renaming it."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
๐ฆ Cordyceps Search
Cordyceps Search is a high-performance codebase semantic search, dependency tracking, and AST-aware refactoring engine. It is packaged as an MCP (Model Context Protocol) server designed to empower developer agents with the structural understanding and refactoring capabilities of a mature IDE.
By combining the blazing speed of a Rust-native CSR (Compressed Sparse Row) graph engine with the precision of tree-sitter AST parsers, Cordyceps Search enables instant semantic discovery, caller/callee blast radius auditing, and cross-file refactoring.
๐ Key Features
Zero-Copy CSR Graph Engine: Backed by a high-performance Rust core (
engramdb) for microsecond-level graph traversals and memory efficiency.Multi-Language AST Parsing: Full structural extraction (classes, methods, functions, calls, returns, docstrings) for Python, JavaScript, JSX, TypeScript, and TSX using
tree-sitter.Cross-Boundary API Tracking: Traces connections between frontend HTTP requests (
fetch,axios) and backend endpoints (Django, Flask, FastAPI).AST-Aware Safe Refactoring: Supports syntax-validated node edits, structured node creation, and AST-aware renaming with cross-file reference propagation.
Watchdog-Driven Real-Time Sync: Automatically detects file additions, modifications, and deletions in the workspace, debouncing events, and keeping the code graph dynamically updated.
Thread-Safe RW Concurrency: Protected by a read-write lock mechanism to ensure safe multi-threaded reads while keeping the unsendable Rust engine execution serial.
Related MCP server: OmniWeave
Supported Languages
Indexed via tree-sitter. Adding a language = drop a YAML config in src/database/parser/languages/ โ no code changes required. Other files are ingested as body-only File nodes (searchable, no AST).
Language | Extensions | Parser | Notes |
Python |
|
| Full contextual resolution โ imports/aliases, lexical scopes, receiver types, |
JavaScript |
|
| Functions, classes, calls, imports/exports, routes, HTTP calls |
JavaScript (JSX) |
|
| Same as JS + JSX components |
TypeScript |
|
| Types, interfaces, generics, inheritance |
TypeScript (TSX) |
|
| Same as TS + JSX/TSX components |
Body-only file nodes (no AST, searchable as files): .json, .md, .html, .css, .yml, .yaml, .toml, .txt, .sql.
Excluded from indexing: node_modules, venv, .venv, __pycache__, target, dist, build, migrations, .git, .idea, .vscode, coverage, .next, .nuxt, fixtures, test_fixtures, test_data and any dotfile dirs. Extend via CORDYCEPS_EXCLUDE env var (comma-separated).
๐๏ธ Architecture

main.py: The stdio transport server entrypoint usingFastMCP.src/database/: Core client interface wrapping the Rust engine, managing Django ORM/URL resolutions, and enforcing read-write thread safety.src/database/parser/: Language-specific grammar configurations and theUniversalCodeParserthat walks tree-sitter ASTs.src/watcher/: File system events monitor built onwatchdogto coordinate incremental rebuilds.src/services/: Logical business operations supporting graph queries, fuzzy searches, and AST modification edits.
Getting Started
Prerequisites
Python
>= 3.11uv (Fast Python Package Installer)
Rust toolchain (only for local
engramedbdevelopment)
Installation
git clone https://github.com/ghassenTn/cordyceps_mcp.git
cd cordyceps_mcp
uv sync --python 3.11This installs engramedb from PyPI as declared in pyproject.toml. No local engine checkout required for normal use.
Local Development (engine + MCP)
For editable installs where MCP uses a sibling engramedb checkout:
git clone https://github.com/ghassenTn/cordyceps_mcp.git
git clone https://github.com/ghassenTn/engramedb.git
# layout: cordyceps_mcp/ ../engramedb/
cd cordyceps_mcp
uv sync --python 3.11 # uses [tool.uv.sources] path = "../engramedb"Engine development:
cd ../engramedb
maturin develop --release๐ Command Guide
Run the following commands using the uv toolchain:
Command | Description |
| Starts the MCP server (stdio transport). Defaults to current directory. |
| Runs the full test suite (89 tests passing). |
| Runs only parser and YAML serialization unit tests. |
| Runs graph database and editor integration tests. |
| Fast feedback loop for debugging parser tests. |
MCP Tools Provided
The server exposes a single unified tool. Legacy standalone tools (search_nodes, analyse_impact, trace_business_flow, etc.) were removed โ all capabilities are now via the query DSL.
query_dsl โ Unified Code Graph Query
Executes a Cordyceps Query DSL string against the live CSR graph. All outputs are YAML.
Parameters
raw(str, required): DSL query stringexpand_body(bool, defaultfalse): whentruereturns fullbody, otherwisebody_preview(150 chars)
query_dsl_help returns the full DSL grammar.
DSL quick reference
Query | Example | Purpose |
|
| Filtered listing with projections, |
|
| Fuzzy / regex search |
|
| File glob |
|
| Full node metadata + callers/callees |
|
| Blast radius (callers/callees) |
|
| Shortest dependency path |
|
| Business-flow tree |
|
| Frontend hook โ backend handler trace |
|
| Module stats (LOC, counts) |
|
| Architecture layer violation check |
All legacy search / impact / flow / full-stack capabilities are available through query_dsl with the appropriate verb โ see query_dsl_help for the complete command reference.
IDE Integration (example kiro ide)
{
"mcpServers": {
"cordyceps": {
"command": "uv",
"args": [
"--directory",
"/path/to/cordyceps_mcp",
"run",
"--python",
"3.11",
"python",
"/path/to/cordyceps_mcp/main.py",
"/path/to/your workspace"
],
"autoApprove": [
"query_dsl"
]
}
}
}๐งช Testing
The test coverage covers parsing, synchronization safety, and graph queries. To run tests, use:
uv run python -m pytestAll tests use pytest fixtures defined in conftest.py with custom thread-safety and environment isolated markers.
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Ground-truth code graph for your codebase: exact callers, callees, symbols & dependencies.
Code intelligence for coding agents: semantic, AST, graph, and full-text search. 279+ languages.
Code intelligence platform for AI agents. 20 tools for architecture, security & impact analysis.
Deterministic context layer for your codebase: change impact, blast radius, answers with receipts.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceSupercharges AI coding agents with a pre-indexed semantic code graph, enabling instant symbol relationships, impact analysis, and context retrieval across 20+ languages.113,76569,062MIT
- AlicenseNot gradedqualityBmaintenanceA high-performance, polyglot code-analysis graph for coding agents that enables cross-language and cross-process code relationship queries in sub-millisecond time.MIT
- AlicenseNot gradedqualityCmaintenanceProvides semantic code search and code insights via a knowledge graph, enabling AI to understand, navigate, and modify complex projects with deep dependency and architecture analysis.MIT
- AlicenseNot gradedqualityBmaintenanceEnables LLM agents to efficiently understand and navigate a codebase by providing semantic search over symbols and a reference graph, replacing expensive grep/glob calls with structured tools like definition lookup, caller/callee queries, and change-impact analysis.1MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ghassenTn/cordyceps_mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server