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

Anysphere

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

يقرأ Cursor ملف mcp.json من .cursor/ في مشروعك، أو من ~/.cursor/ لجميع المشاريع.

- **macOS**: `~/.cursor/mcp.json`
- **Windows**: `~/.cursor/mcp.json`
- **Linux**: `~/.cursor/mcp.json`
- **ملف المشروع**: `.cursor/mcp.json`
- **المفتاح الأعلى مستوى**: `mcpServers`
- **التنسيق**: json
- **OAuth للخوادم البعيدة**: 

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

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

`.cursor/mcp.json`

```
{
  "mcpServers": {
    "github": {
      "url": "https://api.githubcopilot.com/mcp/"
    },
    "playwright": {
      "command": "npx",
      "args": [
        "@playwright/mcp@latest"
      ]
    }
  }
}
```

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

- يمكن أن تستخدم القيم ${env:NAME} و${userHome} و${workspaceFolder}.
- تتضمن إدخالات الخوادم البعيدة url، وعناوين headers اختيارية، وكتلة auth تضم CLIENT_ID وCLIENT_SECRET وscopes لتطبيقات OAuth المسجلة مسبقًا.
- إذا كان موفّر الخدمة يتطلب عناوين إعادة توجيه ثابتة، فسجّل https://www.cursor.com/agents/mcp/oauth/callback وhttp://localhost:8787/callback.
- لا توجد طريقة موثقة لإضافة خادم من سطر الأوامر.

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

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

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

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

[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. [cursor.com](https://cursor.com/docs/context/mcp)/docs/context/mcp

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

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