Centralmind Gateway

Databases

Universal MCP-Server for your Databases optimized for LLMs and AI-Agents.

Your AI app calls the Centralmind Gateway MCP server, which does the databases work and sends the result back to the chat.

About Centralmind Gateway

Centralmind Gateway is a community MCP server from centralmind, filed in our directory under databases. Universal MCP-Server for your Databases optimized for LLMs and AI-Agents.

At a glance

Publisher
centralmind (community)
Runs
See the README for setup
Written in
Go
License
Apache-2.0
GitHub stars
550

How to set up Centralmind Gateway

  1. Follow the install steps in the Centralmind Gateway README; it is written in Go, so have that toolchain ready.
  2. Check the Centralmind Gateway README for keys or settings; the registry lists none that Centralmind Gateway requires.
  3. Add Centralmind Gateway to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Centralmind Gateway tools to confirm the connection.
  5. Run one read-only task with Centralmind Gateway first, and keep your app asking before each tool call until the results look right.

Centralmind Gateway compared with similar servers

  • Motherduck by motherduckdb has fewer GitHub stars than Centralmind Gateway (547 against 550); Motherduck is official while Centralmind Gateway is a community server, and both run locally.
  • Deft by Maneek21 has more GitHub stars than Centralmind Gateway (553 against 550); both are community servers, and both run locally.
  • PerformanceMonitor by erikdarlingdata has fewer GitHub stars than Centralmind Gateway (545 against 550); both are community servers, and both run locally.

Before you connect Centralmind Gateway

  • Give Centralmind Gateway its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Centralmind Gateway tool call until you trust what it does with them.
  • Treat text that Centralmind Gateway fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Centralmind Gateway on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Centralmind Gateway

How marketing and sales teams put Centralmind Gateway to work, by company size. Pick the size closest to yours and start Centralmind Gateway on one use case.

Small business

  • A small business with its own app can ask Centralmind Gateway plain questions about customers and orders, without writing SQL.
  • Owners can use Centralmind Gateway to pull a list of customers who haven't bought in 90 days and plan a win-back email.
  • Centralmind Gateway runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing analysts can connect Centralmind Gateway to answer campaign questions from the warehouse directly, instead of waiting on the data team's queue.
  • Lifecycle teams can use Centralmind Gateway to build audience lists from product data and check counts before a send.
  • Start Centralmind Gateway on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises should point Centralmind Gateway at a read replica with a read-only role, so agents query freely without risk to production data.
  • Data teams can expose curated views through Centralmind Gateway, so marketing gets self-serve answers without access to raw customer tables.
  • Centralmind Gateway is a community server, so have security review the code and pin a version before Centralmind Gateway touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Centralmind Gateway README

From centralmind/gateway on GitHub, shared under its Apache-2.0 license. Images are left out; the original has them.

README.md

CentralMind Gateway: Create API or MCP Server in Minutes

🚀 Interactive Demo avialable here: https://centralmind.ai

What is Centralmind/Gateway

Simple way to expose your database to AI-Agent via MCP or OpenAPI 3.1 protocols.

docker run --platform linux/amd64 -p 9090:9090 \
  ghcr.io/centralmind/gateway:v0.2.18 start \
  --connection-string "postgres://db-user:db-password@db-host/db-name?sslmode=require"

This will run for you an API:

INFO Gateway server started successfully!         
INFO MCP SSE server for AI agents is running at: http://localhost:9090/sse 
INFO REST API with Swagger UI is available at: http://localhost:9090/ 

Which you can use inside your AI Agent:

Gateway will generate AI optimized API.

Why Centralmind/Gateway

AI agents and LLM-powered applications need fast, secure access to data. We're building an API layer that automatically generates secure, LLM-optimized APIs for your structured data.

  • Quickly start with MCP or OpenAPI, or use Direct/Raw SQL APIs
  • Filters out PII and sensitive data to ensure compliance with GDPR, CPRA, SOC 2, and other regulations
  • Adds traceability and auditing capabilities, ensuring AI applications aren't black boxes and allowing security teams to maintain control
  • Optimized for AI workloads: supports the Model Context Protocol (MCP) with enhanced metadata to help AI agents understand APIs, along with built-in caching and security features

It can be useful during development, when an LLM needs to create, adjust, or query data from your database. In analytical scenarios, it enables you to chat with your database or data warehouse. Enrich your AI agents with data from your database using remote function/tool calling.

Features

How it Works

1. Connect & Discover

Gateway connects to your structured databases like PostgreSQL and automatically analyzes the schema and data samples to generate an optimized API structure based on your prompt. LLM is used only on discovery stage to produce API configuration. The tool uses AI Providers to generate the API configuration while ensuring security through PII detection.

2. Deploy

Gateway supports multiple deployment options from standalone binary, docker or Kubernetes. Check our launching guide for detailed instructions. The system uses YAML configuration and plugins for easy customization.

3. Use & Integrate

Access your data through REST APIs or Model Context Protocol (MCP) with built-in security features. Gateway seamlessly integrates with AI models and applications like LangChain, OpenAI and Claude Desktop using function calling or Cursor through MCP. You can also setup telemetry to local or remote destination in otel format.

Documentation

Getting Started

Additional Resources

How to Build

# Clone the repository
git clone https://github.com/centralmind/gateway.git

# Navigate to project directory
cd gateway

# Install dependencies
go mod download

# Build the project
go build .

API Generation

Gateway uses LLM models to generate your API configuration. Follow these steps:

Choose one of our supported AI providers:

Google Gemini provides a generous free tier. You can obtain an API key by visiting Google AI Studio:

Once logged in, you can create an API key in the API section of AI Studio. The free tier includes a generous monthly token allocation, making it accessible for development and testing purposes.

Configure AI provider authorization. For Google Gemini, set an API key.

export GEMINI_API_KEY='yourkey'
  1. Run the discovery command:
./gateway discover \
  --ai-provider gemini \
  --connection-string "postgresql://neondb_owner:MY_PASSWORD@MY_HOST.neon.tech/neondb?sslmode=require" \
  --prompt "Generate for me awesome readonly API"
  1. Enjoy the generation process:
INFO 🚀 API Discovery Process
INFO Step 1: Read configs
INFO ✅ Step 1 completed. Done.

INFO Step 2: Discover data
INFO Discovered Tables:
INFO   - payment_dim: 3 columns, 39 rows
INFO   - fact_table: 9 columns, 1000000 rows
INFO ✅ Step 2 completed. Done.

# Additional steps and output...

INFO ✅ All steps completed. Done.

INFO --- Execution Statistics ---
INFO Total time taken: 1m10s
INFO Tokens used: 16543 (Estimated cost: $0.0616)
INFO Tables processed: 6
INFO API methods created: 18
INFO Total number of columns with PII data: 2
  1. Review the generated configuration in gateway.yaml:
api:
  name: Awesome Readonly API
  description: ''
  version: '1.0'
database:
  type: postgres
  connection: YOUR_CONNECTION_INFO
  tables:
    - name: payment_dim
      columns: # Table columns
      endpoints:
        - http_method: GET
          http_path: /some_path
          mcp_method: some_method
          summary: Some readable summary
          description: 'Some description'
          query: SQL Query with params
          params: # Query parameters

Running the API

Run locally

./gateway start --config gateway.yaml

Docker Compose

docker compose -f ./example/simple/docker-compose.yml up

MCP Protocol Integration

Gateway implements the MCP protocol for seamless integration with Claude and other tools. For detailed setup instructions, see our Claude integration guide.

To add MCP Tool to Claude Desktop just adjust Claude's config :

{
  "mcpServers": {
    "gateway": {
      "command": "PATH_TO_GATEWAY_BINARY",
      "args": ["start", "--config", "PATH_TO_GATEWAY_YAML_CONFIG", "mcp-stdio"]
    }
  }
}

Roadmap

It is always subject to change, and the roadmap will highly depend on user feedback. At this moment, we are planning the following features:

Database and Connectivity

  • 🗄️ Extended Database Integrations - Databricks, Redshift, S3 (Iceberg and Parquet), Oracle DB, Microsoft SQL Server, Elasticsearch
  • 🔑 SSH tunneling - ability to use jumphost or ssh bastion to tunnel connections
Enhanced Functionality
  • 🔍 Advanced Query Capabilities - Complex filtering syntax and Aggregation functions as parameters
  • 🔐 Enhanced MCP Security - API key and OAuth authentication
Platform Improvements
  • 📦 Schema Management - Automated schema evolution and API versioning
  • 🚦 Advanced Traffic Management - Intelligent rate limiting, Request throttling
  • ✍️ Write Operations Support - Insert, Update operations

Database Gateway in MCP Registries

Questions about Centralmind Gateway

What is the Centralmind Gateway MCP server?

Universal MCP-Server for your Databases optimized for LLMs and AI-Agents. Centralmind Gateway is maintained by centralmind on GitHub at centralmind/gateway, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Centralmind Gateway MCP server?

Centralmind Gateway doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (centralmind/gateway). Like most servers, Centralmind Gateway ends with a command or URL you paste into your AI app's MCP config.

Does Centralmind Gateway need an API key?

The registry lists no required keys for Centralmind Gateway. Check the Centralmind Gateway README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Centralmind Gateway an official MCP server?

No. Centralmind Gateway is a community server maintained by centralmind. Community servers can be excellent; read the code and the open issues before you give Centralmind Gateway access to company data.

What license is Centralmind Gateway under?

Centralmind Gateway is released under the Apache-2.0 license, according to its GitHub repository. The license covers the code of Centralmind Gateway; the service it connects to has its own terms.