The Complete Guide to Windsurf MCP: How to Configure Model Context Protocol in Codeium Cascade (2026)
Unlock deep repository awareness, local database inspection, and terminal automation by configuring MCP servers in Codeium's Windsurf editor.
AIStoreHub
Open AI Registry & Developer Platform
Executive Blueprint & Summary (BLUF)
Codeium's Windsurf editor has introduced native Model Context Protocol (MCP) integration, allowing its autonomous agent Cascade to interact with external developer tools, APIs, and databases. While Windsurf provides an internal settings panel, underlying configurations are stored in ~/.codeium/windsurf/mcp_config.json. This guide provides exact configuration schemas, solves Cascade tool invocation timeouts, and demonstrates automated 1-click installation via AIStoreHub CLI.
Codeium's Windsurf editor has emerged as one of the most powerful AI-native IDEs in software engineering.
At the heart of Windsurf is Cascade—an agentic coding assistant capable of multi-file reasoning, proactive terminal command execution, and codebase-wide indexing.
With native support for the Model Context Protocol (MCP), Cascade can now extend its perception and execution capabilities far beyond the immediate workspace repository. It can query local database schemas, fetch real-time documentation, test live endpoints, and manage cloud resources directly during coding sessions.
However, many developers struggle with manual configuration, missing environment variables, and locating Windsurf's hidden configuration files. This guide details everything you need to set up, debug, and automate MCP in Windsurf.
In standard AI code completion, an LLM only knows what you paste into chat or what its local tree-sitter index extracts.
When you equip Windsurf's Cascade with MCP servers:
Database Verification: Cascade writes a SQL migration, tests it against your local Docker PostgreSQL replica via MCP, and verifies column types without you switching to pgAdmin.
Live Documentation: Cascade fetches real-time API reference docs via Brave Search or Fetch MCP servers instead of hallucinating deprecated package APIs.
Repository Health: Cascade queries your GitHub issue tracker to verify pull request specifications before refactoring code.
Windsurf manages MCP servers through a centralized configuration file named mcp_config.json.
The file is stored in your operating system's Codeium configuration directory:
Platform
Default Config Path
macOS
~/.codeium/windsurf/mcp_config.json
Linux
~/.codeium/windsurf/mcp_config.json
Windows
%USERPROFILE%\.codeium\windsurf\mcp_config.json
Windsurf UI Shortcut: You can also access this in the Windsurf editor by navigating to: Windsurf Settings $\rightarrow$ Cascade $\rightarrow$ Model Context Protocol (MCP) $\rightarrow$ Open Config.
Once you save your mcp_config.json, Windsurf automatically initializes background server processes:
Protocol Handshake: Windsurf sends an initialize JSON-RPC request over STDIO to each declared server.
Tool Listing: The server responds with tools/list, returning available function names and JSON Schema parameters.
Agentic Selection: When prompting Cascade ("Check the user table schema in SQLite and write a migration"), Cascade recognizes that sqlite-local has the read_query tool and invokes it autonomously.
Approval Gates: Windsurf displays a confirmation badge before executing state-mutating actions, ensuring full human-in-the-loop safety.
Instead of manually editing JSON files and risking formatting errors, use the open-source AIStoreHub CLI (pip install aistorehub):
bash
# 1. Install CLI
pip install aistorehub
# 2. Inject verified MCP server into Windsurf
aihub mcp install community/postgres-mcp --client windsurf
# 3. List active Windsurf tools
aihub list --client windsurf
AIStoreHub validates your schema, resolves executable paths, and creates timestamped backups of your ~/.codeium/windsurf/mcp_config.json before applying changes.
Explore hundreds of verified MCP servers, community tools, and autonomous agents in the AIStoreHub Registry.
Interactive Registry Preview
Featured Systems in the AIStoreHub Registry
Verified packages installable directly via terminal into Cursor, Claude Desktop, and Python runtimes.
Scan charts, calculate risk/reward brackets, and backtest setups via Claude Code.
Frequently Asked Questions
Essential clarifications for developers and engineering teams building and operating AI systems.
Yes, Windsurf supports local STDIO subprocesses as well as remote SSE (Server-Sent Events) HTTP endpoints.
Written by AIStoreHub
Open AI Registry & Developer Platform
AIStoreHub is the open registry and 1-click CLI for discovering, running, and installing production-grade AI systems, Model Context Protocol (MCP) servers, and autonomous agents.
Learn how to connect any Model Context Protocol server to Cursor IDE, fix common mcp.json syntax errors, and automate tool injection using the 1-click AIStoreHub CLI.
Learn how to find claude_desktop_config.json, solve spawn ENOENT path errors, pass API tokens securely, and automate tool installation with AIStoreHub CLI.
Learn how Model Context Protocol (MCP) bridges frontier models with local developer environments. Complete setup instructions for Claude Desktop, Cursor, and Windsurf with 1-click CLI installation.