Model Context Protocol (MCP)
Browse articles on Model Context Protocol (MCP) — tutorials, guides, and in-depth comparisons.
Model Context Protocol (MCP) is Anthropic's open standard for connecting AI models to external data sources and tools. Instead of building one-off integrations, you build an MCP server once and any MCP-compatible AI client can use it.
How MCP Works
AI Client (Claude Desktop, Cursor, Zed)
↕ MCP Protocol (JSON-RPC over stdio or SSE)
MCP Server (your code, or community servers)
↕
External System (files, databases, APIs, GitHub...)
Any tool you expose through an MCP server becomes available as a context resource or callable tool inside the AI client — no plugins, no custom API wrappers.
What You Can Connect
- Filesystem — read/write files, search codebases
- Databases — query PostgreSQL, SQLite, run migrations
- GitHub — browse repos, read PRs, create issues
- Slack — read channels, post messages
- Web browsers — Puppeteer automation, web scraping
- Custom APIs — wrap any REST endpoint as a tool
Quick Start — Build Your First Server
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
const server = new Server({ name: "my-server", version: "1.0.0" });
server.setRequestHandler("tools/list", async () => ({
tools: [{
name: "get_weather",
description: "Get current weather for a city",
inputSchema: {
type: "object",
properties: { city: { type: "string" } },
required: ["city"]
}
}]
}));
server.setRequestHandler("tools/call", async (req) => {
const { city } = req.params.arguments;
// Call your weather API here
return { content: [{ type: "text", text: `Weather in ${city}: 22°C` }] };
});
const transport = new StdioServerTransport();
await server.connect(transport);
Learning Path
- Install community servers — filesystem, GitHub, PostgreSQL in Claude Desktop
- Understand the protocol — Resources vs Tools vs Prompts
- Build a custom server — TypeScript SDK, expose your first tool
- Debug with MCP Inspector — visual testing before wiring to a client
- Deploy — Docker, persistent config, multi-server setup
Showing 1–30 of 116 articles · Page 1 of 4
- Setup MCP Servers in Zed Editor: AI Agent Setup 2026
- Setup MCP Puppeteer Server: Browser Automation with Claude 2026
- Build MCP Notion Server: AI Access to Your Knowledge Base 2026
- Build MCP AWS Knowledge Bases: Enterprise RAG Integration 2026
- Setup MCP Linear Server: Issue Tracking from Claude Desktop 2026
- MCP with LangChain: Connecting External Context to Your LLM Apps
- MCP with Claude Desktop: File System and Browser Access
- MCP vs Function Calling: When to Use Which in 2026
- MCP TypeScript SDK: Complete API Reference 2026
- MCP Security Model: What Data Can Servers Access?
- MCP Sampling: How LLMs Call Other LLMs via Servers
- MCP Resources: Expose Any Data Context to AI Models
- MCP Prompts: Build Reusable Instruction Templates 2026
- MCP PostgreSQL Server: Database Queries from Claude
- MCP Multi-Server Setup: Orchestrating Multiple Tools in 2026
- MCP GitHub Server: PR Reviews and Code Navigation in 2026
- MCP Filesystem Server: Safe Read-Write Operations Setup Guide
- MCP Debugging: Common Errors and How to Fix Them
- MCP Brave Search Server: Add Real-Time Web to Claude
- Claude Code MCP Integration: Connect to Any External Tool
- Build MCP Slack Server: Read and Post Messages with AI 2026
- Build a Custom MCP Server in Python: Complete 2026 Guide
- MCP with Cursor and Windsurf: IDE Integration Guide 2026
- Build MCP Tools for Claude: Local Script to Published Server
- Connecting AI Agents to Real Tools via MCP: GitHub, PostgreSQL, and Slack Integration
- The MCP Protocol: How to Let Agents Control Your Desktop Apps
- Connect AI to Any Local Tool with MCP in 20 Minutes
- Build an MCP-Enabled Python Tool for Real-Time Data Analysis in 30 Minutes
- Build a Custom MCP Server for Cursor Database Access in 30 Minutes
- Zero-Trust Architecture for Distributed Playwright MCP Clusters: 2025 Implementation Guide