Model Context Protocol (MCP)
MCP is an open standard developed by Anthropic for connecting AI agents to external data sources, tools, and services. It provides a standardized way for agents to interact with the world beyond their training data.
Contents
MCP Servers Quick Reference
| # |
Server |
Package / Install |
Use Case |
| 1 |
Filesystem |
@modelcontextprotocol/server-filesystem |
Read/write local files & directories |
| 2 |
Git |
mcp-server-git (uvx) |
Git history, branches, diffs |
| 3 |
GitHub |
@modelcontextprotocol/server-github |
PRs, issues, GitHub API |
| 4 |
PostgreSQL |
@modelcontextprotocol/server-postgres |
Read-only DB queries, schema inspection |
| 5 |
SQLite |
@easy-mcps/sqlite-mcp-server |
Read/write SQLite databases |
| 6 |
Slack |
@modelcontextprotocol/server-slack |
Channels, messages, threads |
| 7 |
Web / Brave Search |
@modelcontextprotocol/server-brave-search |
Web search & page fetch |
| 8 |
Puppeteer |
@modelcontextprotocol/server-puppeteer |
Browser automation (Chrome) |
| 9 |
Playwright |
@playwright/mcp |
Multi-browser automation |
| 10 |
Memory |
@modelcontextprotocol/server-memory |
Cross-session persistent memory |
| 11 |
AgentMemory |
@agentmemory/mcp |
53-tool memory server |
| 12 |
Sequential Thinking |
@modelcontextprotocol/server-sequential-thinking |
Structured chain-of-thought |
| 13 |
Time |
@modelcontextprotocol/server-time |
Date, time, timezone info |
| 14 |
Context Mode |
@modelcontextprotocol/server-context-mode |
Toggle agent context modes |
| 15 |
Context7 |
npx @context7/server |
Context management for teams |
| 16 |
DuckDuckGo |
@modelcontextprotocol/server-duckduckgo |
Privacy-first web search |
| 17 |
Android MCP |
android-mcp (uvx) |
Android device control |
How MCP Works
MCP Architecture — 3-Layer Client-Server Model
Layer 1: HOST (AI Application)
Claude Code, OpenCode, Cursor, Windsurf, OpenClaw, Gemini CLI, Copilot
↓ MCP Protocol (stdio / SSE) ↓
Layer 2: MCP CLIENT (built into Host)
Manages connections, routes requests, handles authentication
↓ Tools / Resources / Prompts ↓
Layer 3: MCP SERVERS
📄 Filesystem
🐙 GitHub
🗄️ Database
🔍 Web Search
🌐 Browser
🧠 Memory
⏰ Time / Git
🤖 Seq. Thinking
| Layer |
Component |
Role |
| 1 |
Host (AI App) |
The AI application you use — Claude Code, OpenCode, Cursor, OpenClaw |
| 2 |
MCP Client (built into Host) |
Manages connections, routes requests, handles authentication |
| 3 |
MCP Servers |
Expose tools, resources, and prompts for the agent |
The Agent (Layer 1) sends requests through its built-in MCP Client (Layer 2), which communicates with MCP Servers (Layer 3) that connect to real external services — filesystems, APIs, databases.
Key Concepts
| Concept |
Description |
Example |
| Tools |
Actions the agent can perform |
Create a GitHub PR, query a database |
| Resources |
Data the agent can read |
Read a file, fetch a web page |
| Prompts |
Pre-built templates for common tasks |
"Review this PR" template |
| Transports |
How client and server communicate |
stdio (local), SSE (remote) |
Quick Start: Add an MCP Server
To add an MCP server to your agent, add it to your agent's configuration:
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_TOKEN": "your-token"
}
}
}
}
Then restart your agent and the new tools will be available automatically.
Popular MCP Servers
Most servers follow a similar pattern:
- Install the server (usually via npm or docker)
- Configure in your agent's mcpServers config
- Restart your agent to detect new tools
Filesystem MCP Server
Official server from Anthropic's MCP repository. Provides safe read/write access to local files and directories.
| Aspect |
Details |
| Install |
npx -y @modelcontextprotocol/server-filesystem |
| Config |
No extra config needed |
| Permissions |
Reads files, creates directories |
| Best For |
Codebase navigation, local file operations |
Installation
npx -y @modelcontextprotocol/server-filesystem
Configuration:
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem"],
"env": {
"ALLOWED_DIRECTORIES": "/path/to/your/project"
}
}
}
}
Git MCP Server
Official Git server from Anthropic's MCP repository. Provides tools for reading, searching, and analyzing Git repositories — commit history, branches, diffs, file status.
| Aspect |
Details |
| Install |
uvx mcp-server-git |
| Config |
No extra config needed (runs in current repo) |
| Permissions |
Read-only access to Git history |
| Best For |
Code review, git log analysis, branch inspection |
Installation
uvx mcp-server-git
Configuration:
{
"mcpServers": {
"git": {
"command": "uvx",
"args": ["mcp-server-git"]
}
}
}
Features:
- Commit history: Read commit messages, authors, dates
- Branch listing: List and inspect branches
- File diff: Show diffs between commits
- Status check: Current repo status (modified, staged files)
GitHub MCP Server
Two options available — the official server from GitHub and the Anthropic MCP version.
⚠️ Note: The npm package @github/github-mcp-server does not exist (confirmed 404 on npm registry). Use the options below instead.
Option 1 — Official GitHub MCP Server
| Aspect |
Details |
| Install |
Clone from GitHub and build, or use Docker image |
| Config |
Requires GITHUB_TOKEN environment variable |
| Best For |
GitHub-native PR review, issues, code management |
Option 2 — Anthropic's MCP GitHub Server (Recommended)
| Aspect |
Details |
| Install |
npx -y @modelcontextprotocol/server-github |
| Config |
Requires GITHUB_TOKEN environment variable |
| Best For |
General GitHub API access |
Configuration:
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_TOKEN": "ghp_your-token-here"
}
}
}
}
Using Claude's managed endpoint:
{
"mcpServers": {
"github": {
"url": "https://api.anthropic.com/v1/mcp/github"
}
}
}
Token setup: Create at github.com/settings/tokens — use fine-grained tokens scoped to specific repos.
Troubleshooting:
- Token not found: Ensure
GITHUB_TOKEN is set and valid
- 403 Forbidden: Check token scopes (needs
repo permission)
- Rate limited: GitHub has API rate limits (5000 req/hour for authenticated users)
PostgreSQL MCP Server
Provides read-only access to PostgreSQL databases. Good for querying schemas, running migrations, and database introspection.
| Aspect |
Details |
| Install |
npx -y @modelcontextprotocol/server-postgres |
| Config |
Requires DATABASE_URL environment variable |
| Permissions |
Read-only database access |
| Best For |
Backend development, database querying, schema analysis |
Installation
npx -y @modelcontextprotocol/server-postgres
Configuration:
{
"mcpServers": {
"postgres": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-postgres"],
"env": {
"DATABASE_URL": "postgresql://user:password@localhost:5432/mydb"
}
}
}
}
Features:
- Schema introspection: Agent can read table structures, columns, types
- Query execution: Run SELECT queries safely (read-only)
- Transaction safety: No write operations prevent data corruption
SQLite MCP Server
> ⚠️ Note: The npm package @modelcontextprotocol/server-sqlite does not exist (confirmed 404 — never published on npm). Use one of the community alternatives below.
Provides read/write access to SQLite databases. Good for local development, prototyping, and data inspection.
| Aspect |
Details |
| Install |
npx -y @easy-mcps/sqlite-mcp-server or npx -y sqlite-mcp |
| Config |
Requires database file path |
| Permissions |
Full read/write database access |
| Best For |
Local development, data inspection, quick prototyping |
Available packages on npm:
| Package |
Version |
Notes |
@easy-mcps/sqlite-mcp-server ✅ |
1.0.7 |
Stable, actively maintained — recommended |
sqlite-mcp ✅ |
0.0.1 |
Minimal, by egoist |
@mokei/mcp-sqlite ✅ |
0.6.1 |
Feature-rich |
mcp-server-sqlite-npx ✅ |
0.8.0 |
Smithery-compatible |
Installation
npx -y @easy-mcps/sqlite-mcp-server
Configuration:
{
"mcpServers": {
"sqlite": {
"command": "npx",
"args": ["-y", "@easy-mcps/sqlite-mcp-server"]
}
}
}
Features:
- Full SQL access: SELECT, INSERT, UPDATE, DELETE
- Schema inspection: Read table structures, indexes, triggers
- Transaction support: BEGIN/COMMIT transactions
Slack MCP Server
Provides access to Slack channels, messages, and threads. Good for team communication workflows.
| Aspect |
Details |
| Install |
npx -y @modelcontextprotocol/server-slack |
| Config |
Requires SLACK_TOKEN and optionally SLACK_TEAM_ID |
| Permissions |
Read/write messages, join channels |
| Best For |
Team communication, message retrieval, channel management |
Installation
npx -y @modelcontextprotocol/server-slack
Configuration: Create a Slack app at api.slack.com/apps with scopes: channels:history, channels:read, chat:write, channels:join, users:read.
{
"mcpServers": {
"slack": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-slack"],
"env": {
"SLACK_TOKEN": "xoxb-your-token-here",
"SLACK_TEAM_ID": "T1234567890"
}
}
}
}
Troubleshooting:
- "not_in_channel" error: Bot needs to be invited to the channel first
- Rate limiting: Slack has API limits for team workspaces
Web Search / Brave Search MCP Server
Provides internet search and web page fetching capabilities.
| Aspect |
Details |
| Install |
npx -y @modelcontextprotocol/server-brave-search |
| Config |
No extra config needed for basic usage |
| Best For |
Research, documentation lookup, current information |
Installation
npx -y @modelcontextprotocol/server-brave-search
Configuration: Works out of the box. Optionally add API key for higher rate limits:
{
"mcpServers": {
"brave-search": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-brave-search"],
"env": {
"BRAVE_API_KEY": "optional-api-key-here"
}
}
}
}
Features:
- Web search: Query Brave Search API
- Page fetching: Extract content from URLs
- HTML-to-text: Convert web pages to readable text
Puppeteer MCP Server
Provides headless browser automation capabilities. Supports web scraping, testing, and web interaction.
| Aspect |
Details |
| Install |
npx -y @modelcontextprotocol/server-puppeteer |
| Config |
No extra config needed |
| Best For |
Web scraping, automated testing, web interaction |
Installation
npx -y @modelcontextprotocol/server-puppeteer
Configuration:
{
"mcpServers": {
"puppeteer": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-puppeteer"]
}
}
}
Features:
- Page navigation: Visit URLs, navigate within pages
- Screenshot capture: Take screenshots as base64
- JavaScript execution: Run custom scripts in browser context
- PDF generation: Save pages as PDF documents
- Network monitoring: Intercept and inspect network requests
Playwright MCP Server
Microsoft's Playwright-based MCP server for browser automation. More feature-rich than Puppeteer — supports multiple browsers, network mocking, and accessibility snapshots.
| Aspect |
Details |
| Install |
npx -y @playwright/mcp |
| Config |
No extra config needed |
| Best For |
Cross-browser testing, modern web automation |
Installation
npx -y @playwright/mcp
Configuration:
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": ["-y", "@playwright/mcp"]
}
}
}
Features:
- Multi-browser: Chromium, Firefox, WebKit support
- Accessibility snapshots: Read page structure via a11y tree
- Network mocking: Intercept and modify network requests
- Screenshot & PDF: Capture page states
- Element interaction: Click, type, navigate — any web action
Memory MCP Server
Provides persistent memory storage across agent sessions. Good for long-running agents and context persistence.
| Aspect |
Details |
| Install |
npx -y @modelcontextprotocol/server-memory |
| Config |
Requires memory backend URL |
| Best For |
Long-running agents, context persistence, cross-session memory |
Installation
npx -y @modelcontextprotocol/server-memory
Configuration:
{
"mcpServers": {
"memory": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-memory"],
"env": {
"MEMORY_BACKEND_URL": "your-backend-url"
}
}
}
}
Features:
- Persistent storage: Memory survives agent restarts
- Session-scoped: Different agents have separate memory
- Search: Retrieve memories by key or content
- Namespaces: Organize memories by project or topic
Backend options: Redis, PostgreSQL, Supabase, Local filesystem
AgentMemory MCP Server
> 🏆 #1 persistent memory for AI coding agents — 95.2% retrieval R@5, 92% fewer tokens vs competitors, 53 MCP tools.
AgentMemory provides persistent, cross-session memory for coding agents. Built on the iii engine, it features confidence scoring, lifecycle management, knowledge graphs, and hybrid semantic + keyword search.
- GitHub: rohitg00/agentmemory
- npm:
@agentmemory/agentmemory (server), @agentmemory/mcp (MCP shim)
- License: Apache-2.0
- Language: TypeScript
| Aspect |
Details |
| Install |
npm install -g @agentmemory/agentmemory then run agentmemory |
| MCP Config |
npx -y @agentmemory/mcp |
| Config |
Requires running agentmemory server on localhost:3111 |
| Best For |
Cross-session memory, context persistence, project awareness |
Installation:
# Install the memory server (one-time)
npm install -g @agentmemory/agentmemory
Start the memory server in a separate terminal
agentmemory
The MCP server is auto-available via the shim package
Configuration:
{
"mcpServers": {
"agentmemory": {
"command": "npx",
"args": ["-y", "@agentmemory/mcp"],
"env": {
"AGENTMEMORY_URL": "http://localhost:3111"
}
}
}
}
Features (53 tools):
| Category |
Tools |
| Core |
memory_recall, memory_save, memory_smart_search, memory_sessions |
| Analysis |
memory_patterns, memory_timeline, memory_profile, memory_relations |
| File |
memory_file_history, memory_compress_file |
| Data |
memory_export, memory_audit, memory_governance_delete |
Supported agents: Claude Code, Cursor, Gemini CLI, Codex CLI, Hermes, OpenClaw, OpenCode, Cline, Roo Code, Windsurf, Goose, pi, and any MCP-compatible client.
Real-time viewer: Auto-starts on http://localhost:3113 — live observation stream, session explorer, memory browser, knowledge graph visualization.
OpenClaw integration: Copy integrations/openclaw from the repo to ~/.openclaw/extensions/agentmemory and enable plugins.slots.memory = "agentmemory" for deeper memory-slot integration.
Sequential Thinking MCP Server
Enhances agent reasoning with structured thinking chains. Good for complex problem solving and step-by-step analysis.
| Aspect |
Details |
| Install |
npx -y @modelcontextprotocol/server-sequential-thinking |
| Config |
No extra config needed |
| Best For |
Complex problems, multi-step reasoning, analysis |
Installation
npx -y @modelcontextprotocol/server-sequential-thinking
Configuration:
{
"mcpServers": {
"sequential-thinking": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-sequential-thinking"]
}
}
}
Features:
- Thinking chains: Agent shows step-by-step reasoning
- Tree visualization: See decision paths
- Context management: Track what information is considered
- Debug mode: Inspect internal reasoning process
Time MCP Server
Official Time server from Anthropic's MCP repository. Provides current time and timezone information for agents.
| Aspect |
Details |
| Install |
uvx mcp-server-time |
| Config |
No extra config needed |
| Best For |
Timezone-aware agents, scheduling, timestamps |
Installation
uvx mcp-server-time
Configuration:
{
"mcpServers": {
"time": {
"command": "uvx",
"args": ["mcp-server-time"]
}
}
}
Features:
- Current time: Get current time in specified timezone
- Timezone conversion: Convert between timezones
- Date calculations: Add/subtract time, get day of week
Context Mode MCP Server
An MCP server that enables context-aware agent behaviors with mode switching for different development scenarios.
| Aspect |
Details |
| Install |
npx -y context-mode |
| Config |
No extra config needed |
| Best For |
Context-aware prompting, mode-based agent behavior |
Installation
npx -y context-mode
Configuration:
{
"mcpServers": {
"context-mode": {
"command": "npx",
"args": ["-y", "context-mode"]
}
}
}
Features:
- Mode switching: Toggle between development, review, debug modes
- Context awareness: Provides contextual prompts based on mode
- Workflow integration: Adapts agent behavior to current task
Context7 MCP Server
A context-aware MCP server by Upstash that provides relevant context from external sources to AI agents.
| Aspect |
Details |
| Install |
npx @upstash/context7-mcp --api-key |
| Config |
Requires Upstash API key |
| Best For |
RAG-based context injection, external knowledge retrieval |
Installation
npx @upstash/context7-mcp --api-key YOUR_API_KEY
Configuration:
{
"mcpServers": {
"context7": {
"command": "npx",
"args": ["@upstash/context7-mcp", "--api-key", "your-api-key-here"]
}
}
}
Features:
- External context: Fetch relevant context from external sources
- RAG integration: Retrieve-augment-generate pipeline
- Knowledge injection: Provide agents with up-to-date external information
DuckDuckGo MCP Server
Provides privacy-focused web search capabilities through DuckDuckGo search engine.
| Aspect |
Details |
| Install |
npx duckduckgo-mcp-server |
| Config |
No API key required (free, privacy-focused) |
| Best For |
Privacy-respecting web search, research |
Installation
npx duckduckgo-mcp-server
Configuration:
{
"mcpServers": {
"duckduckgo": {
"command": "npx",
"args": ["duckduckgo-mcp-server"]
}
}
}
Features:
- Web search: Query DuckDuckGo search engine
- Privacy: No tracking, no API key required
- Instant answers: Get direct answers where available
Android MCP Server
Enables AI agents to interact with Android devices — take screenshots, tap, type, and automate Android UI.
| Aspect |
Details |
| Install |
uvx --python 3.13 android-mcp |
| Config |
Requires ADB connection to Android device |
| Best For |
Android automation, UI testing, device control |
Installation
uvx --python 3.13 android-mcp
Configuration: Requires ADB connected to your Android device:
# Connect device via USB/Wi-Fi
adb devices
{
"mcpServers": {
"android": {
"command": "uvx",
"args": ["--python", "3.13", "android-mcp"]
}
}
}
Features:
- Screen capture: Read device screen content
- UI interaction: Tap, swipe, type on device
- App control: Launch/kill apps, read notifications
- Automation: Script Android workflows
Chrome DevTools MCP Server
Lets coding agents control and inspect a live Chrome browser — reliable automation, in-depth debugging, and performance analysis via Chrome DevTools.
| Aspect |
Details |
| Install |
npx -y chrome-devtools-mcp@latest |
| Config |
Requires Chrome (stable or newer) installed |
| Best For |
Browser automation, debugging, performance tracing, console/network inspection |
Installation
npx -y chrome-devtools-mcp@latest
Configuration:
{
"mcpServers": {
"chrome-devtools": {
"command": "npx",
"args": ["-y", "chrome-devtools-mcp@latest"]
}
}
}
Slim (headless) mode for simpler browsing tasks:
{
"mcpServers": {
"chrome-devtools": {
"command": "npx",
"args": ["-y", "chrome-devtools-mcp@latest", "--slim", "--headless"]
}
}
}
Features:
- Performance insights: Record traces, extract actionable performance data (uses Chrome CrUX API for field data)
- Advanced debugging: Analyze network requests, capture screenshots, inspect console with source-mapped stack traces
- Reliable automation: Built on Puppeteer — automatically waits for action results
- Usage statistics: Collected by default; opt-out with
--no-usage-statistics flag or CHROME_DEVTOOLS_MCP_NO_USAGE_STATISTICS env var
| Tool |
MCP Support |
Notes |
| Claude Code |
Full |
Native MCP client. Configure in claude.json |
| OpenCode |
Full |
MCP server via config file |
| Cursor |
Yes |
Cursor MCP server support |
| Windsurf |
Yes |
MCP integration |
| OpenClaw |
Yes |
MCP tools support |
Best Practices
| Practice |
Description |
| Security |
Use environment variables for secrets, never hardcode in config files |
| Permissions |
Use minimum required scopes for tokens (principle of least privilege) |
| Rate limiting |
Be aware of API rate limits (GitHub: 5000/hour, Slack: varies) |
| Docker |
Containerize MCP servers for isolation and easy deployment |
| Testing |
Test MCP servers with npx -y before full integration |
Troubleshooting
| Issue |
Solution |
| MCP server not starting |
Check Node.js version (requires 18+), ensure npx is in PATH |
| Tool not visible in agent |
Restart agent after updating mcpServers config |
| Permission errors |
Verify token scopes and account permissions |
| Connection refused |
Check firewall, ensure server is listening on correct port |
- AI Tools Index — Full tools reference including MCP support
- Tools — AI coding agents and assistants compared
- AI Editors — AI-powered editors comparison
- Skills — Agent skills explained
Sources