# code-fundi-mcp [Health: Active]

**Category:** 💬 Communication  
**Repository:** https://github.com/Code-Fundi/code-fundi-mcp  
**GitHub Stars:** 1  
**npm Downloads (last month):** 332  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/code-fundi-mcp

## Description
CodeFundi MCP server for codebase mapping and blast-radius analysis.

## Tools
Capabilities this server exposes over MCP:

- **code-fundi-search** — Search across indexed Code-Fundi repositories using semantic search, grep over docs, or grep over code. Returns matching files with similarity scores, paths, and optional documentation. Use scan_mode to choose between semantic (vector), grep_docs (substring on documentation), or grep_code (substring on source code).
- **code-fundi-research** — Search Code-Fundi repositories AND get an AI-synthesized analysis of the results. This performs a search, then streams an AI response that analyzes the matching code files. Use this when you need both code context and an intelligent summary/explanation.
- **code-fundi-list-repos** — List all indexed repositories in your Code-Fundi account. Supports pagination, scope filtering (private/public), and name search.
- **code-fundi-index-repo** — Index a new GitHub repository in Code-Fundi, or update an existing one. After indexing, the repository's files will be searchable via code-fundi-search.
- **code-fundi-repo-status** — Check the indexing status of a repository by its clone URL.
- **code-fundi-repo-readme** — Get the parsed README documentation for a repository. Provide either a repository UUID or a clone URL. Deprecated in favor of code-fundi-repo-blueprint, which returns the same README plus dependency and convention intelligence.
- **code-fundi-list-public-repos** — Browse the global catalog of indexed public repositories (across all Code-Fundi users). Supports pagination, an `updated_since` cursor, and optional embedding of each repo's largest files. This endpoint does not require an API key.
- **code-fundi-repo-map** — Build a cross-repository dependency map showing where a dependency appears across the source repo, optional compared repos, and (optionally) the public index. Returns structured JSON. Consumes credits.
- **code-fundi-repo-blueprint** — Get the canonical repository intelligence overview: README documentation, top dependencies, top functions/variables, and aggregated coding conventions (PRO+ only). This is the successor to `code-fundi-repo-readme`. Consumes credits.
- **code-fundi-repo-radius** — Run blast-radius / file impact analysis for one or more files or dependencies. Returns projected data flows, entry points, and call edges. Requires PRO, ENTERPRISE, or ADMIN tier (STARTUP is not eligible) and consumes credits.
- **code-fundi-list-files** — List files in an indexed Code-Fundi repository. Supports search by file name/path and pagination. Use the returned file IDs with code-fundi-file-docs to get documentation.
- **code-fundi-file-docs** — Get AI-generated documentation for a specific file in an indexed repository. Returns detailed documentation including summaries, functions, dependencies, and code analysis.
- **code-fundi-list-history** — List your Code-Fundi query history with optional filters for date range, category, endpoint, and repository.
- **code-fundi-history-item** — Get the full details of a single history entry by its ID, including the complete response and knowledge sources.
- **code-fundi-conversation** — Get all messages in a conversation thread by its conversation ID.
- **code-fundi-usage-stats** — Get query-type usage statistics for a given date range. Shows breakdown by query type with counts, credit costs, and average durations.
- **code-fundi-activity-stats** — Get daily activity statistics for a given date range. Shows queries per day with credit costs.
- **code-fundi-language-stats** — Get programming language usage statistics across all indexed repositories.
- **code-fundi-auth-authenticate** — Start Code-Fundi authentication (POST /v2/auth/authenticate). No existing API key required. Use auth_mode otp for new or returning users: set should_create_user true on first signup, false on sign-in. Sends a 6-digit email OTP (not a magic link); then call code-fundi-auth-verify after the human user provides the code. Password mode: pass password here (sent as X-CodeFundi-Auth-Password header only); should_create_user false for sign-in. On success with an active key, the API key is configured in-memory for this MCP session only.
- **code-fundi-auth-verify** — Complete OTP sign-in (POST /v2/auth/verify). Requires the 6-digit code from the user's email after code-fundi-auth-authenticate. The human user must supply the token — ask them explicitly. On success, activates the API key and configures it in-memory for all subsequent tools in this MCP session. Persist CODEFUNDI_API_KEY in MCP config if the user wants auth to survive restarts.
- **code-fundi-auth-resend** — Resend the OTP email (POST /v2/auth/resend) when the previous code expired or was not received. Use after code-fundi-auth-authenticate, before code-fundi-auth-verify. Default type is signup for new accounts.
- **code-fundi-list-api-keys** — List all Code-Fundi API keys (masked) for the authenticated account.
- **code-fundi-regenerate-api-key** — Regenerate the Code-Fundi API key. The full key is shown only once. The new key is automatically configured for all subsequent tool calls.
- **code-fundi-disable-api-key** — Disable a Code-Fundi API key by UUID (`DELETE /v2/keys/{key_id}`). Use `code-fundi-list-api-keys` to find key IDs. Does not rotate the active key unless you disable the one in use.
- **code-fundi-chat** — Send a message to Code-Fundi AI (Fundi chat: POST /v1/fundi/chat). Supports threading, optional code context, indexed repository knowledge (`knowledge_id`), embeddings memory, and voice mode. Responses are streamed by the API and returned as plain text (or JSON when the server uses JSON mode).
- **code-fundi-list-models** — List the curated Code-Fundi chat model catalog (GET /v2/models) with providers, required tier, and context length.
- **code-fundi-model-limits** — Get the AI model limits and tier configuration for your account (GET /v2/models/limits): subscription tokens, the active model's context/knowledge limits, and account limits such as max repositories, files per repo, history retention, and organization access.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "code-fundi-mcp": {
    "command": "npx",
    "args": ["-y","@codefundi/code-fundi-mcp"],
    "env": {
      "CODEFUNDI_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `CODEFUNDI_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What the code-fundi-mcp MCP server does

The code-fundi-mcp MCP server exposes the Code-Fundi API as MCP tools for working with indexed repositories. It can search a codebase semantically or with grep, apply filters, and return AI-synthesized research about matching code. Repository tools cover indexed repository listings, GitHub repository indexing, indexing status, file listings, README content, and public repositories in the global catalog.

For architecture work, the server provides cross-repository dependency maps and blueprints that combine README information with dependency and convention overviews. AI-generated file documentation is also available for indexed files.

## How it works

The MCP process communicates with the Code-Fundi API. Indexed codebases provide the data used by search, research, dependency, and impact-analysis tools. Additional tools expose query history, conversation messages, query-type usage, daily activity, programming-language statistics, the model catalog, and model limits. Fundi AI chat is available through a tool that collects streamed responses into text.

The server supports runtime authentication. Without an API key, an agent can start an OTP flow, request a six-digit email code, verify it, and use the resulting key for later calls in the same process. Existing users can alternatively authenticate with a password. Public repository catalog browsing is available without a key.

## Setup and configuration

Install the published npm package globally, add it to a project, or run it with npx. Source installation is also supported by cloning the repository, installing dependencies, and running the build. A standard MCP configuration can launch the package with npx and does not need an environment block when authentication will happen at runtime.

Set `CODEFUNDI_API_KEY` in the MCP configuration to start authenticated. The key is sent as `X-API-Key` for requests. Runtime-authenticated keys remain in memory only for the lifetime of the MCP process and are not saved across IDE or MCP restarts. The README recommends placing a verified key in the MCP configuration for future sessions.

## Tools and capabilities

The code-fundi-mcp MCP server includes tools for:

- Semantic and grep search, plus AI-assisted research.
- Repository indexing, status checks, listings, README or blueprint retrieval, and public catalog browsing.
- Cross-repository maps and pre-merge blast-radius analysis.
- File listings and AI-generated file documentation.
- Query history, conversations, usage, activity, and language statistics.
- Authentication, API-key management, Fundi chat, model listings, and model limits.

## Limitations and notes

Search and repository intelligence depend on indexed repositories. The repository README tool is deprecated; the blueprint tool is its stated successor. OTP authentication requires a human to provide the six-digit code from email, and magic links are not supported on that path. Authentication endpoints can return rate-limit responses, in which case the documented retry interval should be observed. Password authentication requires HTTPS in production.

_Full upstream README: https://allmcps.com/mcp/code-fundi-mcp/readme_

