Gel Database MCP Server

Author:@christian561
View on GitHub

Overview

The Gel Database MCP Server is a TypeScript-based MCP server. It allows LLM agents to work with Gel databases using EdgeQL queries. This streamlines operations and enables natural language interactions.

To use it, follow these steps. First, install dependencies with yarn install. Copy your dbschema folder into the project. Initialize a Gel project using npx gel project init. Then, generate the EdgeQL JavaScript query builder files. Next, update the connection settings in src/index_gel.ts. Build the project with yarn build. You can optionally test the server runs without errors. Including the gel_llm.txt documentation file improves LLM agent performance.

Key features include tools for LLM agents to learn the database schema, validation to ensure safe EdgeQL execution, direct execution of EdgeQL queries, and search functionality through Gel documentation.

Use cases involve automating database queries via natural language, validating EdgeQL before execution, learning database structures for accurate querying, and searching documentation for examples.

FAQ: Can it work with any LLM? Yes, it works with any LLM supporting the Model Context Protocol. Is a specific database structure required? No, but a well-defined schema helps the agent. How to troubleshoot errors? Use the provided inspector tool for clearer error logs.