EdgeDB MCP Server
by obiwan90
EdgeDB MCP Server is a tool based on the Model Context Protocol (MCP) that provides query and management capabilities for EdgeDB databases. It can be used as a command-line tool or integrated as a library into other projects.
Last updated: N/A
What is EdgeDB MCP Server?
EdgeDB MCP Server is a tool that leverages the Model Context Protocol (MCP) to offer comprehensive query and management functionalities for EdgeDB databases. It functions both as a standalone command-line utility and as an embeddable library for integration into larger projects.
How to use EdgeDB MCP Server?
The server can be used either as a command-line tool via edgedb-mcp-server
or npx -y @obiwan90/edgedb-mcp-server
, or integrated as a library within a JavaScript/TypeScript project by importing and initializing the McpServer
and registering the provided resources and tools. Configuration can be done via environment variables like EDGEDB_DSN
and EDGEDB_INSTANCE
.
Key features of EdgeDB MCP Server
Database Management Tools (connect, list, create, switch, get info)
Query Tools (execute queries, find single/multiple records with filtering, sorting, pagination)
Schema Management Tools (list types, get type details, compare schema structures)
Command-line interface
Library integration
Use cases of EdgeDB MCP Server
Managing EdgeDB databases from the command line
Integrating EdgeDB management capabilities into other applications
Querying EdgeDB databases programmatically
Automating database schema management tasks
FAQ from EdgeDB MCP Server
How do I connect to an EdgeDB instance?
How do I connect to an EdgeDB instance?
You can connect using either a DSN string via the EDGEDB_DSN
environment variable or by specifying the instance name via the EDGEDB_INSTANCE
environment variable.
How do I execute EdgeQL queries?
How do I execute EdgeQL queries?
The server provides tools to execute EdgeQL queries, including parameterized queries and methods to find single or multiple records.
Can I use this server to manage database schemas?
Can I use this server to manage database schemas?
Yes, the server includes tools to list types, get type details, and compare schema structures.
How do I integrate this server into my Cursor editor?
How do I integrate this server into my Cursor editor?
Add a configuration block to your Cursor's mcp.json
file pointing to the npx
command for @obiwan90/edgedb-mcp-server
.
What is the purpose of the Model Context Protocol (MCP)?
What is the purpose of the Model Context Protocol (MCP)?
MCP provides a standardized way for tools and applications to interact with data models and databases, enabling a more consistent and interoperable development experience.