TypeDB
Execute TypeQL queries and manage databases and users on a TypeDB server.
ماذا يمكنك أن تفعل مع TypeDB؟
- Query Execution: Run TypeQL read, write, and schema queries
- Database Management: List, create, and delete databases
- User Management: List, create, and delete users
التثبيت
أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: .cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).
docker.io/typedb/typedb-mcp:1.0.2claude mcp add typedb -- docker run -i --rm docker.io/typedb/typedb-mcp:1.0.2 --typedb-address --typedb-username --typedb-password
{
"mcpServers": {
"typedb": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"docker.io/typedb/typedb-mcp:1.0.2",
"--typedb-address",
"--typedb-username",
"--typedb-password"
]
}
}
}
التوثيق
مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.
TypeDB MCP Server
An MCP (Model Context Protocol) server that enables AI assistants to interact with TypeDB databases. This allows LLMs to execute TypeQL queries, manage databases, and manage users through natural language.
Available on Docker Hub: https://hub.docker.com/repository/docker/typedb/typedb-mcp
Features
- Query Execution: Run TypeQL read, write, and schema queries
- Database Management: List, create, and delete databases
- User Management: List, create, and delete users
Running the Server
docker run -p 8001:8001 typedb/typedb-mcp:<version> \
--typedb-address <address> \
--typedb-username <username> \
--typedb-password <password>
If you're running TypeDB server on localhost:
- replace
<address>withhttp://host.docker.internal:8000instead ofhttp://localhost:8000 - on Linux, add
--add-host=host.docker.internal:host-gateway
Using with Cursor IDE
- Start the MCP server (see above)
- Open Cursor Settings → MCP
- Add the server configuration. Create or edit
.cursor/mcp.jsonin your project:
{
"mcpServers": {
"typedb": {
"url": "http://localhost:8001/mcp"
}
}
}
- Restart Cursor or refresh MCP connections
- Start chatting! You can now ask Cursor to:
- "List all databases"
- "Create a database called 'mydb'"
- "Define an entity 'person' with attribute 'name' in database 'mydb'"
- "Insert a person with name 'Alice'"
- "Query all persons in the database"
Building from Source
Use podman or Docker to create a Docker image and push it to DockerHub:
podman login docker.io
VERSION=<desired version number>
podman build -t typedb/typedb-mcp:$VERSION .
podman push typedb/typedb-mcp:$VERSION
الأسئلة الشائعة
ما هو TypeDB؟
Execute TypeQL queries and manage databases and users on a TypeDB server.
كيف أثبّت TypeDB؟
يعمل على جهازك. في Claude Code: claude mcp add typedb -- docker run -i --rm docker.io/typedb/typedb-mcp:1.0.2 --typedb-address --typedb-username --typedb-password. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.
هل يحتاج TypeDB إلى مفتاح API؟
لا يذكر إدراجه في السجل أي مفتاح أو سر إلزامي. قد تتطلب بعض الميزات حسابًا لدى الخدمة التي يتصل بها.
هل TypeDB مفتوح المصدر؟
شيفرته علنية على GitHub، لكن المستودع لا يعلن ترخيصًا قياسيًا.
من يصون TypeDB؟
ينشره typedb. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.
من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.