MCP (Model Context Protocol) هو معيار مفتوح المصدر، قدمته Anthropic، يتيح لتطبيقات الذكاء الاصطناعي الاتصال بالأدوات الخارجية والبيانات من خلال واجهة موحدة واحدة — بدلاً من كتابة تكامل مخصص لكل تطبيق. فكر فيها كمحول عام بين نموذج والعالم الخارجي.
العميل والخادم
MCP SERVER → exposes capabilities to the model:
- TOOLS → actions the model can call (send_email, create_issue, search_files)
- RESOURCES → data the model can read (a file, a Drive doc, a DB row)
- PROMPTS → reusable prompt templates the server offers
MCP CLIENT → the AI app (Claude Desktop, Claude Code, an IDE) that connects to servers
TRANSPORT → stdio (local process) or HTTP (remote), speaking JSON-RPC both ways
