CG

centralmind/gateway

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

549 stars 64 forks 质量 68 趋势 21Apache-2.0

为你的数据库优化的通用MCP-Server,专为LLM和AI代理优化。

概览

CentralMind 网关:几分钟内创建 API 或 MCP 服务器 🚀 互动演示可在此观看:https://centralmind.ai 通过MCP或OpenAPI 3.1协议,将数据库暴露给AI-Agent的简单方法。 AI代理和基于LLM的应用需要快速、安全的数据访问。我们正在构建一个API层,自动生成安全且优化LLM的API,用于您的结构化数据。- 快速使用MCP或OpenAPI,或使用直接/原始SQL API——过滤PII和敏感数据,确保符合GDPR、CPRA、SOC 2及其他法规——增加可追溯性和审计功能,确保AI应用不是黑箱,并允许安全团队保持控制——针对AI工作负载进行优化:支持模型上下文协议(MCP),增强元数据帮助AI代理理解API,并内置缓存和安全功能 在开发过程中,当大型语言模型需要从数据库中创建、调整或查询数据时,它非常有用。

概述(AI 翻译)

          

CentralMind 网关:几分钟内创建 API 或 MCP 服务器

🚀 互动演示可在此观看:https://centralmind.ai

什么是Centralmind/Gateway

通过MCP或OpenAPI 3.1协议,将数据库暴露给AI-Agent的简单方法。

这将为您运行一个API:

你可以在你的AI代理中使用:

Gateway 将生成 AI 优化的 API。

为什么是Centralmind/Gateway

AI代理和基于LLM的应用需要快速、安全的数据访问。我们正在构建一个API层,自动生成安全且优化LLM的API用于你的结构化数据。

  • 快速开始使用 MCP 或 OpenAPI,或使用 Direct/Raw SQL API
  • 过滤个人身份信息(PII)和敏感数据,确保符合GDPR、CPRA、SOC 2及其他法规
  • 增加可追溯性和审计功能,确保AI应用不再是黑箱,并使安全团队能够保持控制
  • 针对AI工作负载优化:支持模型上下文协议(MCP),增强元数据帮助AI代理理解API,并内置缓存和安全功能

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

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

在 GitHub 查看完整 README

安装

docker run --platform linux/amd64 -p 9090:9090 \
新手?先看 mcpskill.org 教程 →

配置

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