MCP Servers in Claude Code: Connect AI to Any External Tool (2026)
Model Context Protocol (MCP) servers let Claude Code interact with external tools -- databases, APIs, file systems, browsers, and more. This guide explains what MCP is, how to configure servers, and the most useful ones to set up.
Without MCP, Claude Code can only work with your local files and terminal. With MCP, it can query your Supabase database, read your Figma designs, check your Sentry errors, manage your GitHub repos, send emails through Resend, and interact with dozens of other services -- all from within your Claude Code session.
How MCP works
The protocol is simple:
- You configure an MCP server (a small program that knows how to talk to an external service)
- Claude Code connects to that server
- The server exposes "tools" that Claude Code can call
- Claude Code calls those tools when relevant to your request
Configuring MCP servers
MCP servers are configured in your Claude Code settings. The configuration lives in ~/.claude.json (user-level) or your project's settings.
Each server needs:
- A command to start the server process
- Arguments for configuration
- Environment variables for authentication (API keys, tokens)
Most useful MCP servers
GitHub
Manage repositories, issues, pull requests, and file contents without leaving Claude Code.Supabase
Query your database, run SQL, manage tables, check RLS policies. Essential if you use Supabase for your backend.Sentry
Check error reports, analyze stack traces, track issue frequency. Debug production problems without opening a browser.Figma
Pull design context from your Figma files. Get screenshots, component properties, and design tokens. Bridge the gap between design and code.Context7
Fetch up-to-date documentation for any library or framework. Replaces relying on Claude's training data for API references.Playwright
Browser automation. Navigate pages, take screenshots, fill forms, test interactions. Useful for visual verification and testing.Resend
Send emails directly from Claude Code. Useful for testing email templates and transactional email flows.Setting up your first MCP server
The simplest example is Context7, which gives Claude Code access to current documentation:
- Add the server configuration to your Claude settings
- Restart Claude Code
- Ask Claude Code about a library -- it will automatically use Context7 to fetch current docs instead of relying on training data
Security considerations
MCP servers have access to external services through your API keys. Important rules:
- Never commit MCP config files with API keys. Use environment variables.
- Use read-only tokens when possible. If Claude Code only needs to read your database, don't give it write access.
- Review what tools each server exposes. Understand what actions Claude Code can take through each server.
- Use project-level configs for project-specific servers. Don't give every project access to every service.
Building custom MCP servers
If you need Claude Code to interact with a service that doesn't have an existing MCP server, you can build one. MCP servers are relatively simple programs that:
- Define a set of tools (functions with inputs and outputs)
- Handle incoming tool calls from Claude Code
- Return results
The bigger picture
MCP is what turns Claude Code from "an AI that writes code" into "an AI that operates your entire infrastructure." The more services you connect, the more Claude Code can do autonomously -- and the closer you get to truly agentic development workflows.
At //PROMETHEUS, we configure MCP servers as part of our consulting engagements. When we set up a client's development environment, we connect Claude Code to their specific tools so their team can work with AI across their entire stack.
Frequently asked questions
What is MCP in Claude Code?
MCP (Model Context Protocol) is a standard that lets Claude Code connect to external tools and services. MCP servers are bridges between Claude Code and databases, APIs, design tools, error trackers, and other services. They let Claude Code interact with your entire infrastructure, not just local files.
What MCP servers should I set up first?
Start with Context7 (for up-to-date documentation) and GitHub (for repository management). Then add servers for your specific stack -- Supabase if you use it, Sentry for error tracking, Figma for design context. Each server expands what Claude Code can do.
Are MCP servers safe to use?
MCP servers use your API keys to access external services, so treat them with the same security as any credential. Use environment variables (never commit keys), use read-only tokens when possible, and review what tools each server exposes before configuring it.
Can I build my own MCP server?
Yes. MCP servers are programs that define tools and handle tool calls. SDKs are available in TypeScript and Python. A basic server for a custom API can be built in a few hours. The MCP specification is open and well-documented.
Related guides
Need help implementing this?
//prometheus does onsite AI consulting and implementation in Milwaukee. We set it up, train your team, and make sure it works.
let's talk