AI Agents MCP Servers Workflows Blog Submit

How to Use MCP Servers with Cursor IDE: Setup Guide

Step-by-step guide to configuring MCP servers in Cursor IDE for databases, APIs, and tools.

Cursor with MCP support is incredibly powerful. Here's how to set it up.

Step 1: Find Config File

# macOS/Linux
~/.cursor/mcp.json

Step 2: Add Filesystem MCP

{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/dir"]
    }
  }
}

Step 3: Add Database

Connect PostgreSQL MCP for database queries.

Step 4: Add GitHub

Connect GitHub MCP for repo management.

Popular MCP Servers for Cursor

Browse 2,299+ MCP servers for more.

Related Articles & Resources