Home / Glossary / Model Context Protocol (MCP)
Model Context Protocol (MCP)
Model Context Protocol (MCP) एक open standard है जिसे Anthropic ने बनाया है और जो AI models को बाहरी टूल्स, data sources और APIs से connect करने का universal तरीका प्रदान करता है। यह एक standardized interface की तरह काम करता है — AI के लिए USB की तरह — ताकि कोई भी MCP-compatible टूल किसी भी MCP-compatible AI एजेंट के साथ काम कर सके।
MCP क्यों अस्तित्व में है
MCP से पहले, हर AI टूल databases, APIs और बाहरी services के लिए अपने custom integrations बनाता था। इसका मतलब था टूल्स में duplicate काम और users के लिए vendor lock-in। MCP इसे एक standard protocol define करके solve करता है: टूल makers एक MCP server बनाते हैं, और यह हर उस AI एजेंट के साथ काम करता है जो MCP support करता है — Claude Code, Cursor, Windsurf और अन्य।
MCP कैसे काम करता है
MCP एक client-server architecture का उपयोग करता है। AI एजेंट (client) उन MCP servers से connect होता है जो tools, resources और prompts expose करते हैं। जब एजेंट को database query करना हो, documentation search करना हो या API call करना हो, तो वह appropriate MCP server को एक standardized request भेजता है। Server actual interaction संभालता है और structured results return करता है जिन पर एजेंट reasoning कर सकता है।
// Example: MCP server configuration in Claude Code
// ~/.claude/settings.json
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": { "GITHUB_TOKEN": "ghp_..." }
},
"postgres": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-postgres"],
"env": { "DATABASE_URL": "postgresql://..." }
}
}
}MCP servers GitHub, PostgreSQL, Slack, Google Drive, file systems और दर्जनों अन्य services के लिए उपलब्ध हैं। Community-built integrations की पूरी सूची के लिए MCP server registry देखें।
Model Context Protocol किसके लिए उपयोग किया जाता है?+
कौन से AI टूल्स MCP support करते हैं?+
क्या MCP केवल coding के लिए है?+
मैं एक custom MCP server कैसे बनाऊं?+
Related terms
Master Claude Code in days, not months
37 hands-on lessons from beginner to CI/CD automation. Module 1 is free.
START FREE →