---
title: "إعداد MCP لـ Claude Desktop: مسار الملف والمفتاح ومثال · DotsAgent"
description: "أضف خوادم MCP إلى Claude Desktop من Anthropic: موقع ملف الإعداد، والمفتاح الأعلى مستوى والتنسيق، ودعم OAuth للخوادم البعيدة، وإعداد نموذجي."
url: https://dotsagent.io/ar/mcp/clients/claude-desktop
---

Anthropic

# أضف خوادم MCP إلى Claude Desktop

يقرأ Claude Desktop الخوادم المحلية من claude_desktop_config.json؛ وتُضاف الخوادم البعيدة في التطبيق كموصلات مخصّصة.

- **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
- **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
- **المفتاح الأعلى مستوى**: `mcpServers`
- **التنسيق**: json
- **OAuth للخوادم البعيدة**: 

## إعداد نموذجي

يضيف هذا المثال خادم GitHub المستضاف وPlaywright كخادم محلي، بالتنسيق الذي يتوقعه هذا العميل.

`~/Library/Application Support/Claude/claude_desktop_config.json`

```
{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": [
        "@playwright/mcp@latest"
      ]
    }
  }
}
```

لا يمكن إضافة الخوادم البعيدة إلى الملف. أضفها من Settings > Connectors > Add custom connector، ثم ألصق عنوان URL وسجّل الدخول.

## ملاحظات وسلوكيات خاصة

- أغلق التطبيق ثم أعد فتحه بعد تعديل الملف.
- توجد السجلات في ~/Library/Logs/Claude على macOS وفي %APPDATA%\Claude\logs على Windows.
- على Windows، شغّل npx عبر cmd: استخدم command cmd، مع /c وnpx واسم الحزمة كوسائط. يتولى المولّد ذلك نيابةً عنك.
- لا يتوفر إصدار رسمي لنظام Linux.

[أنشئ إعدادًا لـ Claude Desktop →](https://dotsagent.io/ar/mcp/config#client=claude-desktop)

## عملاء آخرون

[Claude Code](https://dotsagent.io/ar/mcp/clients/claude-code)

[Cursor](https://dotsagent.io/ar/mcp/clients/cursor)

[VS Code (GitHub Copilot)](https://dotsagent.io/ar/mcp/clients/vscode-copilot)

[Windsurf / Devin Desktop](https://dotsagent.io/ar/mcp/clients/windsurf)

[Zed](https://dotsagent.io/ar/mcp/clients/zed)

[OpenAI Codex CLI](https://dotsagent.io/ar/mcp/clients/codex-cli)

[Gemini CLI](https://dotsagent.io/ar/mcp/clients/gemini-cli)

[ChatGPT](https://dotsagent.io/ar/mcp/clients/chatgpt)

[OpenClaw](https://dotsagent.io/ar/mcp/clients/openclaw)

[Cline](https://dotsagent.io/ar/mcp/clients/cline)

[Continue](https://dotsagent.io/ar/mcp/clients/continue)

[JetBrains AI Assistant](https://dotsagent.io/ar/mcp/clients/jetbrains-ai)

## المصادر

1. [modelcontextprotocol.io](https://modelcontextprotocol.io/docs/develop/connect-local-servers)/docs/develop/connect-local-servers
2. [modelcontextprotocol.io](https://modelcontextprotocol.io/docs/develop/connect-remote-servers)/docs/develop/connect-remote-servers
3. [github.com](https://github.com/modelcontextprotocol/servers)/modelcontextprotocol/servers

مرجع مستقل لمطوّري وكلاء الذكاء الاصطناعي. لا تربطنا أي علاقة بأي من المورّدين المذكورين هنا.

© 2026 DotsAgent · تم التحقق من المعلومات في 1 أكتوبر 2026
