Complete Guide to MCP Servers: What They Are and How to Use Them
A practical guide to Model Context Protocol (MCP) servers: what MCP is, how to set up servers in Cursor and Claude Code, top server categories, and common pitfalls.
Editorial Team
The AI Coding Tools Directory editorial team researches and reviews AI-powered development tools to help developers find the best solutions for their workflows.
Model Context Protocol (MCP) servers give AI coding agents access to external tools and data. Instead of pasting context by hand, your agent can read GitHub issues, query databases, search Notion, and control a browser. This guide explains what MCP is, how to set it up, and how to choose servers for your workflow.
Quick Answer
MCP is an open standard (by Anthropic) that lets AI applications talk to external systems through a uniform protocol. MCP servers are processes that expose tools (functions) and resources (data) to AI agents. You add servers to your AI tool's config; the agent discovers and calls them at runtime.
| Step | Action |
|---|---|
| 1. Pick a server | Choose from GitHub, Postgres, Notion, Figma, Supabase, and 15+ others. |
| 2. Add to config | Put the server in .cursor/mcp.json (Cursor) or your tool's MCP config with command and args or a url. |
| 3. Restart | Restart the AI tool so it picks up the new server. |
| 4. Use it | Ask the agent to "search my GitHub issues" or "query the database schema" and it will use the MCP tools. |
What is MCP?
MCP defines a JSON-RPC 2.0 protocol for AI applications to connect to external data and tools. A host (Cursor, Claude Code, Codex) runs an MCP client that talks to one or more MCP servers. Each server exposes:
- Tools — Callable functions (e.g.,
create_issue,execute_sql) - Resources — Readable data (e.g., database schemas, file contents)
- Prompts — Reusable prompt templates
Two common transport modes:
- STDIO — The host spawns the server as a local process; communication over stdin/stdout.
- HTTP/SSE — The server runs remotely; the client connects via URL (often with OAuth).
Practical Setup Walkthrough
Cursor
- Create
.cursor/mcp.jsonin your project root (or~/.cursor/mcp.jsonfor global config). - Add a server. Example for GitHub:
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_your_token"
}
}
}
}
- Restart Cursor. In Settings > Tools & MCP you should see the server listed.
- In a chat, try: "Search my repo for uses of fetchUser."
Claude Code / Claude Desktop
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
Use the same mcpServers structure. Restart Claude after editing.
VS Code with GitHub Copilot
Some clients support code --add-mcp '...' or a GUI for adding servers. Check your client's MCP documentation.
Remote servers (Supabase, Sentry, Vercel)
Many SaaS MCP servers use a URL and OAuth instead of a local process:
{
"mcpServers": {
"supabase": { "url": "https://mcp.supabase.com/mcp" },
"sentry": { "url": "https://mcp.sentry.dev/mcp" },
"vercel": { "url": "https://mcp.vercel.com" }
}
}
On first use, the client will open a browser for OAuth login.
Top Server Categories
Code and repos
- GitHub MCP Server — Repos, PRs, issues, code search, file access.
- Filesystem MCP Server — Local file read/write within a sandbox (for clients without built-in file access).
Databases
- PostgreSQL MCP Server — Schema inspection and read-only SQL.
- MongoDB MCP Server — Explore collections, run queries, generate code.
- Redis MCP Server — Get, set, delete, and list keys.
- Supabase MCP Server — SQL, migrations, Edge Functions, docs (hosted, OAuth).
Product and docs
- Notion MCP Server — Search pages, read databases, create and update content.
- Linear MCP Server — Search and update issues.
- Jira MCP Server — Search issues, create and update tickets.
Design and deployment
- Figma MCP Server — Design context, variables, Code Connect, design-to-code.
- Vercel MCP Server — Projects, deployments, build logs, docs.
- Firebase MCP Server — Firestore, Auth, security rules.
Infrastructure and observability
- Sentry MCP Server — Issues, errors, Seer analysis.
- Kubernetes MCP Server — Pods, logs, Helm, generic resources.
- Docker MCP Server — Run MCP servers in isolated containers via the Docker gateway.
See the full MCP directory for all covered servers.
Tool Compatibility
| Tool | MCP support | Config location |
|---|---|---|
| Cursor | Yes | .cursor/mcp.json |
| Claude Code | Yes | claude_desktop_config.json |
| OpenAI Codex | Yes | Codex MCP settings |
| Windsurf | Yes | Windsurf MCP config |
| GitHub Copilot | Yes (VS Code) | Via VS Code/Copilot MCP |
| Continue | Yes | Continue config |
Configuration format is similar across tools: mcpServers object with server name, command/args for stdio or url for remote. Check each tool's docs for exact paths and options.
Common Pitfalls
- Config not loaded — Ensure the config file path is correct and restart the AI tool.
- Missing env vars — Tokens in
envmust be set; avoid hardcoding secrets in committed files. - Wrong transport — Use
command/argsfor stdio servers,urlfor HTTP. Mixing them causes failures. - Production access — Do not connect MCP servers to production databases or critical systems; use dev/staging.
- Too many servers — Each server adds tools to the context. Enable only what you need for the current task.
- Approval disabled — If your client supports it, keep manual approval for tool calls to avoid unintended mutations.
Security Recommendations
- Store API keys and tokens in environment variables, not in config files.
- Prefer read-only modes and scoped access (e.g., project-specific Supabase, repo-specific GitHub tokens).
- Use OAuth-hosted servers when available instead of long-lived tokens.
- Review tool call parameters before approving; agents can be prompted to run harmful commands.
- Isolate sensitive data; do not give agents access to PII or production databases.
Next Steps
- Configure MCP servers — Cross-tool setup guide.
- MCP ecosystem cookbook — Patterns and workflows.
- MCP directory — Browse all covered servers with setup instructions.
Related in This Cluster
- The MCP Revolution: How One Protocol Connects Every AI Tool
- MCP directory — All covered servers
- GitHub MCP Server
- Figma MCP Server
- Supabase MCP Server
Related guides: AI coding agents explained | How to use Cursor | Directory
Get the Weekly AI Tools Digest
New tools, comparisons, and insights delivered regularly. Join developers staying current with AI coding tools.
Tools Mentioned in This Article
Claude Code
Anthropic's terminal-based AI coding agent with 80.9% SWE-bench, Agent Teams, and GitHub Actions
SubscriptionContinue
Open-source, model-agnostic AI coding assistant for VS Code and JetBrains
Open SourceCursor
The AI-native code editor with $1B+ ARR, 25+ models, and background agents on dedicated VMs
FreemiumGitHub Copilot
AI pair programmer built into GitHub and popular IDEs
FreemiumOpenAI Codex
Cloud coding agent with 1M+ developers, Desktop App, and parallel sandboxed environments
FreemiumWindsurf
AI-native IDE with Cascade agents and SWE model family
PaidWorkflow Resources
Cookbook
AI-Powered Code Review & Quality
Automate code review and enforce quality standards using AI-powered tools and agentic workflows.
Cookbook
Building AI-Powered Applications
Build applications powered by LLMs, RAG, and AI agents using Claude Code, Cursor, and modern AI frameworks.
Cookbook
Building APIs & Backends with AI Agents
Design and build robust APIs and backend services with AI coding agents, from REST to GraphQL.
Cookbook
Debugging with AI Agents
Systematically debug complex issues using AI coding agents with structured workflows and MCP integrations.
Skill
Change risk triage
A systematic method for categorizing AI-generated code changes by blast radius and required verification depth, preventing high-risk changes from shipping without adequate review.
Skill
Configuring MCP servers
A cross-tool guide to setting up Model Context Protocol servers in Cursor, Claude Code, Codex, and VS Code, including server types, authentication, and common patterns.
Skill
Local model quality loop
Improve code output quality when using local AI models by combining rules files, iterative retries with error feedback, and test-backed validation gates.
Skill
Plan-implement-verify loop
A structured execution pattern for safe AI-assisted coding changes that prevents scope creep and ensures every edit is backed by test evidence.
MCP Server
AWS MCP Server
Open source MCP servers from AWS Labs that give AI coding agents access to AWS documentation, best practices, and contextual guidance for building on AWS.
MCP Server
Docker MCP Server
Docker MCP Gateway orchestrates MCP servers in isolated containers, providing secure discovery and execution of Model Context Protocol servers across AI coding tools.
MCP Server
Figma MCP Server
Official Figma MCP server that brings design context, variables, components, and Code Connect data into AI coding sessions for design-to-code workflows.
MCP Server
Firebase MCP Server
Experimental Firebase MCP server that gives AI coding agents access to Firestore, Auth, security rules, Cloud Messaging, and project management through the Firebase CLI.
Frequently Asked Questions
What is MCP?
Which AI tools support MCP?
Do I need to install each MCP server separately?
Are MCP servers secure?
What are the most useful MCP servers?
Related Articles
What is Vibe Coding? The Complete Guide for 2026
Vibe coding is the practice of building software by describing intent in natural language and iterating with AI. This guide explains how it works, who it's for, and how to get started.
Read more →GuideWarp Oz: Cloud Agent Orchestration for DevOps
A practical guide to Warp's Oz cloud agent: what it does, how it fits into terminal and DevOps workflows.
Read more →GuideSWE-bench Wars: How AI Coding Benchmarks Hit 80%
A practical look at SWE-bench and AI coding benchmarks: what they measure, current results, and how to interpret claims.
Read more →