We use tracking cookies to understand how you use the product and help us improve it. For more information on how we store cookies, read our  privacy policy.

MCP Servers

Extend AI agents with Model Context Protocol servers

Model Context Protocol (MCP) servers extend AI coding agents with specialized capabilities like accessing documentation, interacting with APIs, and automating workflows.

What is MCP?

MCP is an open protocol that allows AI agents to connect to external tools and data sources. Think of it as plugins for your AI assistant - each MCP server provides specific capabilities that enhance what your AI can do.

MCP servers work with AI agents like Cursor, Windsurf, Claude Desktop, and other tools that support the Model Context Protocol.

Configuration

Most AI agents that support MCP have built-in configuration interfaces. The exact setup varies by tool:

  • Cursor: Settings → Features → Model Context Protocol
  • Windsurf: Settings → MCP Servers
  • Claude Desktop: Edit claude_desktop_config.json
  • Kiro: Create .kiro/settings/mcp.json

Check your AI agent's documentation for specific MCP configuration instructions. The examples below use JSON format which is common across most tools.

Here are some powerful MCP servers to enhance your development workflow:

Clerk SDK Snippets

Get instant access to Clerk authentication code snippets and patterns.

What it does:

  • Provides ready-to-use Clerk SDK code snippets
  • Offers authentication patterns and examples
  • Includes B2B SaaS bundles and organization management patterns

Setup:

Add Clerk MCP server to your AI agent's configuration:

MCP configuration
{
  "mcpServers": {
    "clerk": {
      "command": "npx",
      "args": ["-y", "@clerk/mcp-server-clerk"]
    }
  }
}

Most AI agents have a settings UI for adding MCP servers. You can also manually edit the configuration file.

Restart your AI agent or reload MCP servers

Test it by asking: "Show me Clerk authentication patterns"

Example prompts:

  • "Show me the b2b-saas bundle from Clerk"
  • "Get Clerk useUser hook example"
  • "Show me organization management patterns"

Context7 Documentation

Access up-to-date documentation for any library or framework.

What it does:

  • Fetches latest documentation from thousands of libraries
  • Provides code examples and API references
  • Keeps you updated with current best practices

Setup:

Add Context7 to your AI agent's MCP configuration:

Context7 MCP configuration
{
  "mcpServers": {
    "context7": {
      "command": "npx",
      "args": ["-y", "@context7/mcp-server"]
    }
  }
}

Restart your AI agent

Test it: "Look up Next.js 16 documentation on server actions"

Example prompts:

  • "Search Context7 for Stripe webhook handling"
  • "Get Prisma transaction documentation"
  • "Look up Tailwind CSS 4 features"

Plainform is available on Context7! You can query Plainform's documentation directly through Context7 MCP.

Try asking: "Look up Plainform documentation on authentication setup" or "Get Plainform pricing component examples"

Next.js DevTools

Deep integration with Next.js development server for runtime insights.

What it does:

  • Connects to your running Next.js dev server
  • Provides real-time error diagnostics
  • Shows route information and build status
  • Enables cache management

Setup:

Add Next.js DevTools to your MCP configuration:

Next.js DevTools MCP configuration
{
  "mcpServers": {
    "nextjs-devtools": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-nextjs"]
    }
  }
}

Start your Next.js dev server:

Start dev server
npm run dev

Ask your AI agent: "Check Next.js dev server for errors"

Example prompts:

  • "What routes are available in my Next.js app?"
  • "Check for compilation errors"
  • "Clear Next.js cache"
  • "Show me runtime diagnostics"

Requires Next.js 16+ with MCP support enabled (enabled by default).

Figma Integration

Connect Figma designs to your codebase for design-to-code workflows.

What it does:

  • Fetches Figma file data (layouts, content, styles)
  • Downloads images and assets
  • Helps maintain design-code consistency

Setup:

Get your Figma access token from Figma Settings

Add Figma to your MCP configuration:

Figma MCP configuration
{
  "mcpServers": {
    "figma": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-figma"],
      "env": {
        "FIGMA_PERSONAL_ACCESS_TOKEN": "your-token-here"
      }
    }
  }
}

Restart your AI agent

Example prompts:

  • "Get data from Figma file [file-key]"
  • "Download images from Figma design"
  • "Show me the layout structure from Figma"

Complete Configuration Example

Here's a full MCP configuration with all recommended servers. Add this to your AI agent's MCP settings:

Complete MCP configuration
{
  "mcpServers": {
    "clerk": {
      "command": "npx",
      "args": ["-y", "@clerk/mcp-server-clerk"],
      "disabled": false
    },
    "context7": {
      "command": "npx",
      "args": ["-y", "@context7/mcp-server"],
      "disabled": false
    },
    "nextjs-devtools": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-nextjs"],
      "disabled": false
    },
    "figma": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-figma"],
      "env": {
        "FIGMA_PERSONAL_ACCESS_TOKEN": "your-token-here"
      },
      "disabled": false
    }
  }
}

The exact location and format of this configuration depends on your AI agent. Check your tool's documentation for specifics.

Configuration Options

Each MCP server supports these options:

  • command: The executable to run (usually npx or uvx)
  • args: Arguments passed to the command
  • env: Environment variables (API keys, tokens)
  • disabled: Set to true to temporarily disable a server
  • autoApprove: Array of tool names to auto-approve (skip confirmation)

Auto-Approve Tools

To skip confirmation prompts for specific tools:

Auto-approve configuration
{
  "mcpServers": {
    "context7": {
      "command": "npx",
      "args": ["-y", "@context7/mcp-server"],
      "autoApprove": ["query-docs", "resolve-library-id"]
    }
  }
}

Managing MCP Servers

Reconnect Servers

After changing your MCP configuration, reload servers in your AI agent:

  • Cursor/Windsurf: Command Palette → "Reconnect MCP Servers"
  • Claude Desktop: Restart the application
  • Kiro: Command Palette → "Reconnect MCP Servers"

Disable a Server

Set disabled: true to temporarily turn off a server:

Disable server
{
  "mcpServers": {
    "figma": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-figma"],
      "disabled": true
    }
  }
}

View Active Servers

Most AI agents have a way to view active MCP servers:

  • Cursor/Windsurf/Kiro: Command Palette → "View MCP Servers"
  • Claude Desktop: Check the MCP section in settings

Troubleshooting

Best Practices

  1. Start with essential servers: Don't install every MCP server - start with ones you'll actually use
  2. Keep API keys secure: Never commit tokens to git - use environment variables or local configs
  3. Use project-specific configs when needed: Some AI agents support workspace-level MCP configs for project-specific servers
  4. Auto-approve trusted tools: If your AI agent supports it, add frequently-used, safe tools to auto-approve lists
  5. Test after setup: Always test a new MCP server with a simple prompt to verify it's working

Next Steps

How is this guide ?

Last updated on