Surreal Mcp
@lfnovo
关于 Surreal Mcp
MCP server for SurrealDB database
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"surrealdb": {
"command": "uvx",
"args": [
"surreal-mcp"
],
"env": {
"SURREAL_URL": "ws://localhost:8000/rpc",
"SURREAL_USER": "root",
"SURREAL_PASSWORD": "root",
"SURREAL_NAMESPACE": "test",
"SURREAL_DATABASE": "test"
}
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is Surreal Mcp?
Surreal Mcp is a Model Context Protocol server that enables AI assistants to interact with SurrealDB databases by providing a standardized interface for executing SurrealQL queries, performing CRUD operations, managing graph relationships, and handling bulk operations.
How to use Surreal Mcp?
Install and run via uvx surreal-mcp (no installation needed) or using uv/pip after cloning the repository. Configure required environment variables (SURREAL_URL, SURREAL_USER, SURREAL_PASSWORD) and optionally set a default namespace and database. Add the server to your MCP client configuration (e.g., Claude Desktop) with the appropriate command and environment variables.
Key features of Surreal Mcp
- Full SurrealQL query execution
- Comprehensive CRUD create, read, update, delete operations
- Graph database relationship creation and traversal
- Bulk multi-record inserts
- Smart updates: full replace, merge, and JSON Patch
- Type-safe handling of SurrealDB RecordIDs
- Connection pooling for efficient database management
- Multi-database support via namespace/database override per tool call
Use cases of Surreal Mcp
- Let an AI assistant query and update user records based on natural language requests.
- Build and traverse graph relationships (e.g., "user purchased product") with simple tool calls.
- Perform complex SurrealQL queries that the AI formulates from a description.
- Run bulk inserts or updates across multiple records in one operation.
- Manage data in separate namespaces/databases from a single session.
FAQ from Surreal Mcp
What prerequisites are needed to run Surreal Mcp?
Python 3.10 or higher, a running SurrealDB instance (local or remote), and an MCP-compatible client (e.g., Claude Desktop, MCP CLI).
How do I configure database connection settings?
Set environment variables SURREAL_URL, SURREAL_USER, and SURREAL_PASSWORD (required) plus optional SURREAL_NAMESPACE and SURREAL_DATABASE. These can be overridden per tool call by passing namespace and database parameters.
What tools does Surreal Mcp provide?
It provides ten tools: query, select, create, update, delete, merge, patch, upsert, insert, and relate, each documented with example usage.
Can I work with multiple databases in one session?
Yes. By providing namespace and database parameters in individual tool calls, you can operate on different databases without needing multiple server instances.
How is connection management handled?
The server uses connection pooling (with SurrealDB Python SDK) and async/await for non-blocking database operations, with a pooled connection for the default environment and separate connections for overrides.
其他 分类下的更多 MCP 服务器
Maestro
mobile-dev-incPainless E2E Automation for Mobile and Web
Activepieces
activepiecesAI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
IDA Pro MCP
mrexodiaAI-powered reverse engineering assistant that bridges IDA Pro with language models through MCP.
Inbox Zero AI
elie222The world's best AI personal assistant for email. Open source app to help you reach inbox zero fast.
Unity MCP ✨
justinpbarnettUnity MCP acts as a bridge between AI assistants and your Unity Editor. Give your LLM tools to manage assets, control scenes, edit scripts, and automate tasks within Unity.
评论