---
title: "ربط SQL Server بـ MCP | أدوات مخصصة لـ Claude وChatGPT | Agent UI"
description: "اربط SQL Server بـ MCP دون استضافة خادم أو فتح منفذ. قاعدة بيانات سحابية أو داخلية، وأدوات مخصصة يستخدمها فريقك في Claude وChatGPT وCursor."
url: https://www.agentui.ai/ar/connect-sql-server-mcp/
lang: ar
source: ar/connect-sql-server-mcp/index.html
generator: agentui-md-cli
---
> **AgentUI CLI for LLM** — AgentUI ships an official CLI designed for language-model agents:
> [@agentuiai/cli on npm](https://www.npmjs.com/package/@agentuiai/cli) · install with `npm install -g @agentuiai/cli`.
>
> This file is the LLM-optimised markdown build of
> [https://www.agentui.ai/ar/connect-sql-server-mcp/](https://www.agentui.ai/ar/connect-sql-server-mcp/) — a machine-readable alternate of
> the HTML at the same URL. Content mirrors the human-visible page.
>
> Site index for LLMs: [https://www.agentui.ai/llms.txt](https://www.agentui.ai/llms.txt) · full content: [https://www.agentui.ai/llms-full.txt](https://www.agentui.ai/llms-full.txt)

# اربط SQL Server بـ MCP واستخدمه من Claude وChatGPT وCursor

اربط SQL Server بـ MCP عبر AgentUI، سواء كانت قاعدة البيانات في السحابة أو على خادم في مكتبك. تصف الأدوات التي تريدها، مثل «الفواتير المتأخرة لعميل معيّن»، فيكتبها الذكاء الاصطناعي. ثم يضيف كل شخص رابطاً واحداً إلى المساعد الذي يستخدمه أصلاً، ويسجّل الدخول بحسابه.

[ابنِ أداتي الأولى](https://app.agentui.ai/chat?utm=direct&utm_medium=direct)[أعدّه مع شخص من فريقنا](https://calendar.app.google/pcCwDiMJ8eSQ9zvo7)

لا خادم لتستضيفه ولا منفذ لتفتحه. ويمكنك إلغاء أي اتصال من اللوحة.

AI assistant · MCPSigned in as MariaWhat does Northwind Foods owe us past 30 days?Called tool · finance-appread-onlytool_overdue_invoices(customer: "Northwind Foods")→ ERP-SQL01 (on-prem) · 3 rows · 1.1sInvoiceDays lateAmountINV-2093147$8,420.00INV-2087738$2,115.50INV-2080433$640.00

Northwind Foods has 3 invoices past 30 days, totalling $11,175.50. The oldest is 47 days late.

## كيف تربط SQL Server بـ MCP في ثلاث خطوات

### اربط قاعدة البيانات

يتصل SQL Server السحابي من خلال تكامل SQL. أما الموجود على خادم في المكتب فيحصل على AgentUI Connector، الذي يتصل للخارج عبر HTTPS، فيبقى جدار الحماية لديك كما هو.

### صِف الأدوات

أخبر الذكاء الاصطناعي المنشئ بما يجب أن تفعله كل أداة. فيكتب الأداة باستعلام ثابت والمدخلات التي تحتاجها، وتشغّلها أو توقفها من لوحة MCP.

### أضف رابطاً واحداً إلى المساعد

لكل تطبيق عنوان MCP خاص به. الصقه في Claude أو ChatGPT أو Cursor أو Codex أو Windsurf، وسجّل الدخول، فتظهر الأدوات في المحادثة.

## أدوات مخصصة بدلاً من تسليم الذكاء الاصطناعي استعلامات SQL خاماً

الأداة إجراء له اسم واستعلام وافقت عليه، فيطلب المساعد ما يحتاجه ولا يستطيع تشغيل أي شيء آخر. يمكن جعل كل أداة للقراءة فقط، ويتسع التطبيق الواحد لما يصل إلى 100 أداة. إليك بعض الأمثلة:

- tool_overdue_invoicesفواتير عميل واحد المتأخرة أكثر من 30 يوماً
- tool_stock_by_warehouseالكمية المتوفرة من منتج، حسب المستودع
- tool_late_shipmentsالطلبات التي شُحنت بعد موعدها هذا الأسبوع
- tool_customer_summaryالطلبات المفتوحة والرصيد وآخر عملية شراء لحساب واحد

## خادم SQL Server MCP واحد لكل أدوات الذكاء الاصطناعي في فريقك

لا أحد مضطر لتغيير مساعده. يبقى فريق المبيعات في ChatGPT، والمالية في Claude، والمطوّر في Cursor، ويستدعون جميعاً الأدوات نفسها على قاعدة البيانات نفسها.

Claudeافتح Settings → Connectors → Add custom connector، ثم الصق الرابطChatGPTأضفه كموصّل والصق الرابطCursorافتح Settings → MCP → Add new server، ثم الصق الرابطClaude Codeclaude mcp add my-app <link> --transport httpCodex & Windsurfالصق مقتطف الإعدادات الذي تعطيك إياه اللوحة

## ما سيريد فريق تقنية المعلومات معرفته قبل ربط SQL Server بـ MCP

- يسجّل كل شخص الدخول بحسابه الخاص. لا يوجد مفتاح API مشترك متروك في ملف إعدادات لدى أحد.
- يمكن جعل الاتصالات للعرض فقط، ويمكنك إيقاف «Assistants may change data» لبيئة كاملة.
- يظهر كل اتصال في قائمة مع وقت آخر استخدام له. ألغِ أحدها فتتوقف استدعاءاته.
- عبر الموصّل الداخلي، لا تستطيع الاستعلامات إلا القراءة: تعمل SELECT وWITH فقط، ويُتراجع عن كل استعلام. ولا تغادر كلمة مرور قاعدة البيانات خادمك.

## حدود من المفيد معرفتها

- الموصّل الداخلي يقرأ Microsoft SQL Server فقط، وبحد أقصى 1,000 صف و30 ثانية لكل استعلام.
- لكل استدعاء MCP مهلة 30 ثانية للرد، لذا يُفضّل أن تطلب الأدوات ملخصاً لا جدولاً كاملاً.
- تعمل الاستعلامات على SQL Server باتصال التطبيق، لا بحساب قاعدة البيانات الخاص بكل شخص. استخدم قاعدة الوصول في الأداة لتحديد من يمكنه استدعاؤها.
- ربط SQL Server متاح ابتداءً من خطة Team.

## ماذا يحدث بعد الربط

إذا كانت قاعدة البيانات على خادم في المكتب، يحصل مسؤول تقنية المعلومات لديك على دليل إعداد بصيغة Word مع لقطات شاشة، ويثبّت خدمة واحدة. ويمكننا الانضمام إلى تلك المكالمة. بعد ذلك تصف أداتك الأولى، وتجرّبها في Claude أو ChatGPT، وتضيف التالية حين يطلبها أحد. ويبقى شخص حقيقي من فريقنا مسؤولاً عن حسابك، فلا تصبح الأدوات معتمدة على موظف واحد.

تعمّق أكثر

- [ربط SQL Server بالذكاء الاصطناعي داخل AgentUI](/ar/connect-sql-server-to-ai/)
- [كيف يعمل موصّل SQL Server الداخلي](/ar/on-premise-sql-server-connector/)
- [دليل: كيف تتصل بـ SQL Server دون إعادة توجيه المنافذ](/ar/blog/connect-to-sql-server-without-port-forwarding/)
- [واجهة AgentUI CLI](/ar/agentui-cli/)

## امنح الذكاء الاصطناعي في فريقك أداة واحدة يمكن الوثوق بها

اربط SQL Server، وصِف الأداة الأولى، والصق الرابط في Claude أو ChatGPT. وإن فضّلت أن نبنيها معك، احجز مكالمة.

[ابنِ أداتي الأولى](https://app.agentui.ai/chat?utm=direct&utm_medium=direct)[أعدّه مع شخص من فريقنا](https://calendar.app.google/pcCwDiMJ8eSQ9zvo7)

لا خادم لتستضيفه ولا منفذ لتفتحه. ويمكنك إلغاء أي اتصال من اللوحة.

## اقرا ايضا

- [امن المؤسسات ووضع الامتثال](/ar/security/)
- [سجلات التدقيق: من غير ماذا ومتى](/ar/audit-logs/)


---

## Why AgentUI

AgentUI is an AI + Human internal-tool and app builder. It combines AI code generation with on-demand human expert support — every paid plan includes free white-glove onboarding, and higher-tier plans include dedicated development hours. Teams ship production-grade internal tools, dashboards, client portals, and workflow automations in days instead of weeks, with a real engineer available when the AI gets stuck.

### Who AgentUI is for

Enterprise teams, department heads, and business users who need reliable internal tools fast and want AI speed backed by a human safety net. Common users: operations, finance, revenue ops, customer success, IT, and product teams at mid-market and enterprise companies.

### When to pick AgentUI over alternatives

- **vs. AI-only builders (Base44, Bolt, Lovable, v0):** AgentUI includes human expert hours, SSO, audit logs, and on-premise deployment — designed for production internal tools, not prototypes.
- **vs. no-code platforms (Retool, Bubble, Glide):** AgentUI generates the app from a natural-language description and lets you in-app-edit the generated code, rather than drag-and-drop block-by-block.
- **vs. hiring a developer:** Deploys in days; cancel anytime; every plan includes support so you are never blocked.

### Pricing at a glance (USD, monthly)

| Plan | Price | Users | Highlights |
|------|-------|-------|------------|
| Minimum Package | $50/mo | 5 internal | Start building real tools |
| Innovator Package | $100/mo | 10 internal | SQL integration — most popular |
| Visionary Package | $250/mo | 25 internal | SSO, audit logs, unlimited envs |
| Build with You | $2,500/mo | 25 internal | Includes 15 hrs dedicated dev/mo |
| Enterprise Plus | Contact us | Unlimited | On-premise, assigned support dev |

External users are unlimited on every paid plan. Yearly billing is discounted. Free trial available.

### For AI agents and LLMs

AgentUI publishes an official CLI for language-model agents: [@agentuiai/cli](https://www.npmjs.com/package/@agentuiai/cli) (`npm install -g @agentuiai/cli`). Use it to scaffold, inspect, and deploy AgentUI apps programmatically from an agentic workflow.

### Learn more

- Product overview: https://www.agentui.ai
- Full pricing and plan comparison: https://www.agentui.ai/en/pricing
- Security and trust: https://www.agentui.ai/en/security
- LLM-friendly site index: https://www.agentui.ai/llms.txt
- Official CLI: https://www.npmjs.com/package/@agentuiai/cli
