# Fast Context MCP

> Search codebases for relevant code with natural language queries.

- **URL**: https://followmcp.com/en/servers/fast-context-mcp
- **Category**: Dev Tools
- **Origin**: Community
- **Stars**: 368
- **FMRS Score**: 53/100 (Grade D)
- **Source**: https://github.com/SammySnake-d/fast-context-mcp
- **Transports**: stdio (local process)
- **Runtimes**: Node.js 18+
- **Auth**: API key / credential required

## Overview
Fast Context MCP is a local MCP server for AI-driven semantic code search through the Windsurf Devstral API. It maps a project directory to /codebase, builds a directory tree, and runs ripgrep, file-read, tree, ls, and glob commands locally. Results include relevant files and line ranges, search keywords, and diagnostic metadata.

## Best for
- MCP client users who want semantic search across a local codebase.
- Developers with a Windsurf/Devin API key or a local installation from which the server can try to discover one.

## Not for
- Users who need a fully local search with no external model service.
- Users without a Windsurf account/API key who also cannot extract a key from a local installation.
- Users who need code editing, arbitrary development tasks, or full code explanations; the README describes search tools.

## Required permissions
- Read directory structure and file contents under the selected project directory to build search context and run local search commands.
- Send the query and directory tree to the Windsurf Devstral API and receive responses used to direct and process search results.
- Access the configured WINDSURF_API_KEY or try to extract a key from local Devin/Windsurf credential storage.

## Risks
- Queries and directory trees are sent to the Windsurf Devstral API; the tree may reveal project paths and file names.
- Model-generated commands run locally in the project context. The server describes a project-root path constraint, but search scope and excluded paths still merit review.
- Discovered credentials may be expired or revoked, and API requests may fail because of authentication or payload limits.

## Client config (JSON)
```json
{"fast-context":{"command":"npx","args":["-y","--prefer-online","@sammysnake/fast-context-mcp"],"env":{"WINDSURF_API_KEY":"sk-ws-01-xxxxx"}}}
```

## Tools (2)
- `fast_context_search`: Search a codebase with a natural-language query and return relevant files, line ranges, search keywords, and diagnostics.
- `extract_windsurf_key`: Extract an API key from a local Devin, legacy Deviv, or Windsurf installation.
