contextflow-mcp
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., "@contextflow-mcpExplain how the database connection is initialized"
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.
contextflow-mcp
MCP server that connects Claude to Contextflow β semantic code search and AI-powered Q&A over vectorized repositories, directly inside Claude.
β¨ What it does
contextflow-mcp gives Claude three native tools to interact with a Contextflow snapshot β a vectorized index of your entire codebase:
Tool | What it does |
π | Semantic search over your codebase β finds relevant code by meaning, not keywords |
π€ | Ask any question about your code, get an AI answer grounded in real source files |
π | Inspect snapshot metadata: repo name, branch, files indexed, vectorized chunks |
Once configured, Claude can answer questions like:
"How does the authentication flow work?"
"Find all places where we handle HTTP errors"
"Is there any retry logic for failed API calls?"
β¦and cite the exact file and line numbers from your codebase.
π Quick Start
Option A β npx (recommended, no install needed)
macOS / Linux:
{
"mcpServers": {
"contextflow": {
"command": "npx",
"args": ["-y", "contextflow-mcp"],
"env": {
"CONTEXTFLOW_TOKEN": "your_snapshot_token",
"CONTEXTFLOW_API_URL": "https://backend2-contextflow.frogland.tech"
}
}
}
}Windows (requires cmd /c wrapper):
{
"mcpServers": {
"contextflow": {
"command": "cmd",
"args": ["/c", "npx", "-y", "contextflow-mcp"],
"env": {
"CONTEXTFLOW_TOKEN": "your_snapshot_token",
"CONTEXTFLOW_API_URL": "https://backend2-contextflow.frogland.tech"
}
}
}
}Option B β Global install
npm install -g contextflow-mcp{
"mcpServers": {
"contextflow": {
"command": "contextflow-mcp",
"args": [],
"env": {
"CONTEXTFLOW_TOKEN": "your_snapshot_token",
"CONTEXTFLOW_API_URL": "https://backend2-contextflow.frogland.tech"
}
}
}
}βοΈ Configuration
Where to add the config
Claude client | Config file location |
Claude Desktop (Mac) |
|
Claude Desktop (Windows) |
|
Claude Code CLI | Run |
Claude Code CLI
claude mcp add contextflow npx -- -y contextflow-mcp \
-e CONTEXTFLOW_TOKEN=your_token \
-e CONTEXTFLOW_API_URL=https://backend2-contextflow.frogland.techπ Environment Variables
Variable | Required | Default | Description |
| β Yes | β | Public token of your Contextflow snapshot |
| β No |
| Base URL of the Contextflow API server |
The server will exit immediately with a clear error message if
CONTEXTFLOW_TOKENis not set.
π οΈ Tools Reference
get_context_info
Returns metadata about the connected Contextflow snapshot.
No parameters required.Example output:
Snapshot: my-backend
Branch: main
Status: ready
Files indexed: 142
Vectorized chunks: 1,847
Created: 2026-03-15T10:32:00Zsearch_context
Performs semantic vector search over the indexed codebase.
Parameter | Type | Required | Default | Range | Description |
| string | β Yes | β | β | Natural language description of what to find |
| number | β No |
| 1β20 | Number of results to return |
| number | β No |
| 0β1 | Minimum similarity score |
Example output:
Found 3 relevant fragments (87ms):
### [1] src/auth/middleware.ts (L12β45) Β· 92% match Β· typescript
export async function authMiddleware(req, res, next) {
const token = req.cookies.session;
...
}
### [2] src/auth/jwt.ts (L5β28) Β· 78% match Β· typescript
...ask_context
AI-powered Q&A grounded in your actual source code.
Parameter | Type | Required | Default | Range | Description |
| string | β Yes | β | β | Natural language question about the codebase |
| number | β No |
| 3β12 | Number of code chunks used as context |
Example output:
The authentication system uses JWT tokens stored in HTTP-only cookies...
**Sources used:**
1. `src/auth/middleware.ts` L12β45 (92% match)
2. `src/config/jwt.ts` L5β20 (76% match)
3. `src/routes/login.ts` L88β112 (71% match)
_Generated in 234ms_ποΈ How it works
Claude ββ(MCP stdio)βββΆ contextflow-mcp ββ(HTTP REST)βββΆ Contextflow API
β β
Validates params Vector search + AI
Formats results Returns chunks + answersThe MCP server is a lightweight adapter β it receives tool calls from Claude, proxies them to the Contextflow API using your token, and formats the results back to Claude with file paths, line numbers, and similarity scores.
π§βπ» Development
# Clone and install
git clone https://github.com/your-username/contextflow-mcp
cd contextflow-mcp
npm install
# Development (watch mode)
npm run dev
# Build
npm run build
# Run
npm startProject structure
contextflow-mcp/
βββ src/
β βββ index.ts # MCP server source (TypeScript, 164 lines)
βββ dist/
β βββ index.js # Compiled binary (committed, ready to ship)
βββ package.json
βββ tsconfig.json
βββ claude-config-example.jsonπ Requirements
Node.js β₯ 18
A running Contextflow instance with a valid snapshot token
π License
MIT Β© Miller Zamora
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
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/MILLERMARRU/mcpContext'
If you have feedback or need assistance with the MCP directory API, please join our Discord server