How to Supercharge Windsurf AI with MCP Servers: Step-by-Step Guide

Learn how to set up and use MCP servers in Windsurf AI for seamless database management and automation. This guide covers MCP integration, practical workflows, and pro tips—perfect for API developers and backend engineers.

Ashley Goolam

Ashley Goolam

31 January 2026

How to Supercharge Windsurf AI with MCP Servers: Step-by-Step Guide

Unlock the full potential of Windsurf AI by integrating MCP (Model Context Protocol) servers. Learn how to set up, connect, and use MCP servers—such as PostgreSQL integration—for seamless, AI-powered database management and workflow automation inside your code editor.

Apidog Ui image

button

What is an MCP Server? Why Use MCP in Windsurf?

Model Context Protocol (MCP) is an open standard designed to let AI tools like Windsurf securely interact with external resources—databases, APIs, files, and more. Developed by Anthropic, MCP allows your AI assistant (Cascade in Windsurf) to go beyond code suggestions and actually perform actions inside your development environment.

Why integrate MCP servers with Windsurf?

Apidog naturally complements this workflow. As you design, test, or document your APIs, Apidog offers an intuitive platform to streamline API development—making it a smart companion for any developer working with complex integrations. Explore it at apidog.com.


Step-by-Step: Setting Up MCP Servers in Windsurf AI

Follow these instructions to quickly connect an MCP server to Windsurf and start leveraging AI-driven development.

1. Install or Update Windsurf AI


2. Enable MCP Support in Windsurf Settings

This step allows Windsurf to communicate with MCP servers. Choose an AI model—Claude 3.5 Sonnet is highly recommended for coding tasks.

cascade settings


3. Add and Configure an MCP Server (Example: PostgreSQL)

Windsurf supports both stdio (local CLI) and sse (remote HTTP) MCP servers. Let’s integrate a PostgreSQL MCP Server, a popular choice for database management.

a. Download the PostgreSQL MCP Server

b. Install Dependencies

c. Connect the Server to Windsurf

{
  "mcpServers": {
    "postgresql-mcp": {
      "command": "node",
      "args": ["/path/to/postgresql-mcp-server/build/index.js"],
      "disabled": false,
      "alwaysAllow": []
    }
  }
}

add mcp server

custom mcp server

mcp server templates

d. Activate the MCP Server in Windsurf

view windsurfs available tools

For more MCP server options, browse HiMCP.ai - Discover 1682+ MCP Servers or visit windsurf.run.


4. Test Your MCP Server Connection

If set up correctly, Cascade will return insights—such as schema details or performance metrics—directly in your editor.

cascade mcp server tools


Practical Ways to Use MCP Servers in Windsurf

Now that your MCP server is live, here are some powerful use cases for backend and API engineers:

Query a Database Schema

Prompt:

Get schema info for postgresql://user:password@localhost:5432/mydb

Cascade will return tables, columns, and constraints in a readable format.

Create Database Tables

Prompt:

Create a table called 'tasks' with columns id (SERIAL), name (VARCHAR), and done (BOOLEAN) in postgresql://user:password@localhost:5432/mydb

Cascade generates and runs the SQL, and you’ll see the result—no manual scripting needed.

Debug Performance Issues

Prompt:

Debug performance issues on postgresql://user:password@localhost:5432/mydb

Cascade can identify bottlenecks or missing indexes, offering actionable suggestions.


Expand Your Workflow: More MCP Servers for Windsurf

Beyond PostgreSQL, explore dozens of MCP integrations for different workflows:

Discover and install new MCP servers at windsurf.run or through HiMCP.ai.

0

For detailed documentation and server templates, visit the Windsurf Docs page.

1


Pro Tips for MCP Power Users


Why MCP Integration Makes Windsurf Stand Out

Adding MCP servers transforms Windsurf from a code editor into a developer command center. The seamless, AI-driven connection to databases and tools means less context switching and more focus on building. Compared to alternatives like Cursor, Windsurf’s deep context awareness and extensive tooling unlock major efficiency gains for API and backend teams.

Apidog users especially benefit from this workflow—combining powerful API design/testing with real-time, AI-assisted project automation.


Conclusion: Level Up Your Development with MCP Servers

Integrating MCP servers with Windsurf AI unlocks next-level productivity for API developers and backend engineers. From database management to automated workflows, you’ll streamline complex tasks directly in your editor. For more MCP servers, tips, and detailed integrations, visit windsurf.run.

button

Explore more

Google Genie 3: The Most Impressive AI Model for Creating Interactive Digital Worlds

Google Genie 3: The Most Impressive AI Model for Creating Interactive Digital Worlds

Google Genie 3 is DeepMind's foundation world model that generates interactive, explorable 3D environments from text prompts or single images. This guide covers how it works, architecture, use cases from gaming to education, Vertex AI integration, and limitations.

3 February 2026

How to Connect Kimi K2.5 to OpenClaw/ClawdBot?

How to Connect Kimi K2.5 to OpenClaw/ClawdBot?

Technical guide for connecting Kimi K2.5 to OpenClaw (ClawdBot). Covers installation, API key setup, provider configuration, and validation for building autonomous AI agents.

3 February 2026

How to Use Kimi K2.5 with Claude Code

How to Use Kimi K2.5 with Claude Code

Technical guide on routing Claude Code CLI to use Moonshot's Kimi K2.5 model via Anthropic Messages API compatibility. Covers environment setup, persistent configuration, and optimization strategies for developers seeking alternative AI coding assistants.

3 February 2026

Practice API Design-first in Apidog

Discover an easier way to build and use APIs