Code-Fundi MCP Server
OfficialProvides tools for indexing and managing GitHub repositories within the Code-Fundi codebase map, enabling semantic search, repository intelligence, and blast-radius analysis.
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., "@Code-Fundi MCP ServerMap the codebase and analyze the blast radius of changing the auth service."
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.
Code-Fundi MCP Server
A production-grade Model Context Protocol (MCP) server for the Code-Fundi API: a codebase map and blast-radius engine for AI coding agents. Enables any MCP-compatible AI assistant (Claude, Claude Code, Cursor, Windsurf, VS Code Copilot, and more) to search, research, index, and scan code repositories through natural language, and see what a change breaks before it ships.
Built with FastMCP (TypeScript) and Zod for schema validation.
Getting started for AI agents
If you are an AI agent (or configuring one) and no CODEFUNDI_API_KEY is set, you must self-authenticate before using search, repos, chat, or other authenticated tools. The auth tools (code-fundi-auth-*) work without a pre-existing key.
Which path to use
Situation | Action |
| Use any tool immediately β the server sends it as |
No API key configured | Run the OTP self-auth flow below (recommended) or password sign-in |
Zero-config MCP setup (no API key)
You can start the MCP server without CODEFUNDI_API_KEY and authenticate at runtime:
{
"mcpServers": {
"code-fundi": {
"command": "npx",
"args": ["-y", "@codefundi/code-fundi-mcp"]
}
}
}Self-authenticate with OTP (recommended)
Code-Fundi uses Supabase-backed auth (POST /v2/auth/authenticate, /v2/auth/verify, /v2/auth/resend). OTP emails contain a 6-digit code β magic links are not supported on this path.
Ask the human user for their email address.
Call
code-fundi-auth-authenticatewith:auth_mode:"otp"email: the user's emailshould_create_user:truefor a new account,falsefor a returning user
Tell the user to check their inbox for a 6-digit code. The API may return
verification_required: trueandapi_key.key_state: "agent_pending"until verification completes.Ask the user for the 6-digit OTP (human-in-the-loop β you cannot guess or bypass this step).
Call
code-fundi-auth-verifywith the sameemailand thetoken(6 digits).On success, the MCP server automatically configures the API key in memory for all subsequent tool calls in this session.
If the code expired or was not received, call code-fundi-auth-resend with the same email, then repeat step 5.
Example dialogue:
Agent: What email should I use to sign in to Code-Fundi?
User: dev@example.com
Agent: [calls code-fundi-auth-authenticate] I've sent a 6-digit code to dev@example.com. Please paste it here.
User: 482913
Agent: [calls code-fundi-auth-verify] You're signed in. I can now search and index your repositories.Password sign-in (alternative)
For existing accounts with a password, call code-fundi-auth-authenticate with auth_mode: "password", the user's email, should_create_user: false, and the password parameter. The MCP client sends the password only in the X-CodeFundi-Auth-Password header (never in the JSON body). Production requires HTTPS. Returning users may receive an active API key immediately without a separate verify step.
After authentication
The API key is held in memory for the lifetime of the MCP server process. It is not persisted across IDE or MCP restarts.
Recommend the user add the key to their MCP config as
CODEFUNDI_API_KEYso future sessions start authenticated.A FREE-tier account and API key are created automatically on first signup.
Errors
HTTP status | What to do |
401 Unauthorized | No valid key β run the OTP flow above, or set |
429 Too many requests | Auth endpoints are rate-limited per IP; wait for |
Related MCP server: codeweave-mcp
Features
Every tool below is backed by the same codebase map: structural dependencies, call graph, and blast radius, indexed once and queried in milliseconds.
π Semantic & grep code search across your indexed codebase map
π§ AI-powered research: search plus AI analysis in a single call
π¦ Repository management: index, status, README, listing, public catalog
π°οΈ Repository intelligence: cross-repo dependency map, blueprint, Blast-Radius Guard (impact analysis before you merge)
π File documentation: AI-generated docs for any indexed file
π Usage statistics: query usage, activity, language breakdowns
π Agent-driven authentication: sign up/sign in via OTP without pre-configured keys
π¬ AI chat & model insight: direct conversation with Code-Fundi AI, model catalog, and per-tier limits
Quick Start
Install from npm (recommended)
Install the package (includes a pre-built dist/). The code-fundi-mcp binary is on your PATH when installed globally, or available via npx without cloning the repo:
npm install -g @codefundi/code-fundi-mcpOr add it to a project:
npm install @codefundi/code-fundi-mcpInstall from source (this repository)
git clone https://github.com/Code-Fundi/code-fundi-mcp.git
cd code-fundi-mcp
npm install
npm run buildConfigure
Option A β API key (fastest): set your key as an environment variable:
export CODEFUNDI_API_KEY=your_api_key_hereOption B β no API key: skip the env var and let the agent self-authenticate at runtime. See Getting started for AI agents.
Zero-config MCP example (no env block):
{
"mcpServers": {
"code-fundi": {
"command": "npx",
"args": ["-y", "@codefundi/code-fundi-mcp"]
}
}
}Use with Claude Desktop
After a global install (npm i -g @codefundi/code-fundi-mcp), point MCP at the published binary (no path to dist/index.js required):
{
"mcpServers": {
"code-fundi": {
"command": "@codefundi/code-fundi-mcp",
"env": {
"CODEFUNDI_API_KEY": "your_api_key_here"
}
}
}
}If the binary is not on your PATH, use npx (downloads or uses the local package and runs the same entrypoint):
{
"mcpServers": {
"code-fundi": {
"command": "npx",
"args": ["-y", "@codefundi/code-fundi-mcp"],
"env": {
"CODEFUNDI_API_KEY": "your_api_key_here"
}
}
}
}Use with Cursor
Same pattern as Claude: command plus optional args only, no manual path to the repo:
{
"mcpServers": {
"code-fundi": {
"command": "npx",
"args": ["-y", "@codefundi/code-fundi-mcp"],
"env": {
"CODEFUNDI_API_KEY": "your_api_key_here"
}
}
}
}When developing inside this repo, you can run npm run dev or npx tsx src/index.ts without building first.
Development Mode
npm run dev # Run with tsx (no build needed)
npx fastmcp inspect src/index.ts # Open MCP Inspector UI
npx fastmcp dev src/index.ts # Test with MCP CLITools Reference (27 tools)
Covers the Code-Fundi V2 API for codebase mapping and blast-radius analysis: search (including search-with-chat / research), repositories (list, index, status, readme, public catalog), repository intelligence (map, blueprint, radius), files, history, statistics, API keys, authentication, plus Fundi chat (POST /v1/fundi/chat) and the V2 model catalog / limits (GET /v2/models, GET /v2/models/limits).
Search
Tool | Description |
| Semantic and grep search across your indexed codebase map, with filters |
| Search plus AI-synthesized analysis of matching code |
Repositories
Tool | Description |
| List indexed repositories with pagination |
| Index a new GitHub repository into your codebase map |
| Check repository indexing status |
| Get repository README documentation (deprecated, prefer blueprint) |
| Browse the global catalog of indexed public repositories (no key needed) |
Repository Intelligence
Tool | Description |
| Cross-repository dependency map: how services and packages actually connect |
| README plus dependency and convention overview (successor to repo-readme) |
| Blast-Radius Guard: every file and function that breaks before you merge (PRO+) |
Files
Tool | Description |
| List files in a repository |
| Get AI-generated file documentation |
History
Tool | Description |
| List query history with filters |
| Get full details of a history entry |
| Get conversation thread messages |
Statistics
Tool | Description |
| Query-type usage breakdown |
| Daily activity statistics |
| Programming language usage |
Authentication
Tool | Description |
| Start OTP/password auth flow (no key needed) |
| Verify OTP code and obtain API key |
| Resend OTP verification email |
| List API keys (masked) |
| Regenerate API key |
| Disable an API key by ID ( |
Chat & Models
Tool | Description |
| Fundi AI chat ( |
| List the curated chat model catalog ( |
| Get AI model limits and tier configuration ( |
Authentication
Two modes: pre-configured API key (CODEFUNDI_API_KEY in MCP config) or agent-driven OTP/password auth at runtime. Full step-by-step instructions, tool names, and error handling are in Getting started for AI agents at the top of this README.
Environment Variables
Variable | Required | Default | Description |
| No* | β | API key for authentication |
| No |
| API base URL override |
* Required unless using agent-driven auth tools.
License
MIT
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 Servers
- Alicense-qualityDmaintenanceA production-ready MCP server that provides AI assistants with comprehensive GitHub developer tooling including PR analysis, code review, changelog generation, dependency auditing, commit summarization, and refactoring suggestions.Last updated26ISC
- Alicense-qualityBmaintenanceAn MCP server that gives AI agents structured code understanding and precise code intelligence via local indexing of AST, call graphs, and semantic search.Last updated964Apache 2.0
- Alicense-qualityDmaintenanceA production-grade MCP server providing advanced code intelligence capabilities such as semantic search, dependency analysis, and natural language Q&A across multiple programming languages.Last updatedMIT
- Alicense-qualityAmaintenanceMCP server for local-first code intelligence, providing structural code graph, semantic search, and impact analysis to AI agents.Last updated1MIT
Related MCP Connectors
A MCP server built for developers enabling Git based project management with project and personalβ¦
An MCP server that gives your AI access to the source code and docs of all public github repos
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
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/Code-Fundi/code-fundi-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server