OlympHill
mcp-sqlalchemy-server logo

mcp-sqlalchemy-server基于 FastAPI、ODBC 和 SQLAlchemy 的简单 MCP ODBC 服务器

(0)
Daniel Nikulshyn审阅者 Daniel Nikulshyn·更新 2026年7月

概览

一款轻量级的 MCP (模型上下文协议) 服务器,用于通过 ODBC 与数据库管理系统 (DBMS) 进行交互,支持 Virtuoso DBMS 和其他支持 SQLAlchemy 提供者的 DBMS 后端。该服务器提供了列出模式、检索表信息、描述表结构、搜索表、执行存储程序和 SQL 查询等功能。

主要功能

  • 列出模式
  • 检索表信息
  • 描述表结构
  • 搜索表
  • 执行存储程序
  • 执行 SQL 查询

价格

模型
Free
评分
暂无评价

使用场景

数据库模式浏览

使用 MCP 服务器来浏览和探索数据库模式、表和表结构。

SQL 查询执行

在连接的 DBMS 上执行 SQL 查询并获取结果支持 JSONL 或 markdown 表格格式。

优点 & 缺点

优点

  • 支持多种 DBMS 后端
  • 支持列出模式、表和描述表结构
  • 支持执行存储程序和 SQL 查询
  • 结果支持 JSONL 和 markdown 表格格式

缺点

  • 需要ODBC配置
  • 依赖于 SQLAlchemy 提供者来实现 DBMS 兼容

评测

登录以留下评测。

暂无评测。来当第一个吧!

问答

What are the main capabilities and typical use cases?

The server lets you list schemas, retrieve table metadata, describe table structures, search tables, and run stored procedures or ad‑hoc SQL queries, returning results as JSONL or markdown tables—ideal for data‑exploration tools, reporting pipelines, or integrating with AI assistants.

Asked by Ludovic Girard · Apr 14, 2026

Do I need to set up ODBC manually before using the server?

Yes, you must install and configure an ODBC driver (e.g., via unixODBC), create a DSN in ~/.odbc.ini, and supply the DSN, user, and password in the .env file before the FastAPI server can connect.

Asked by Dmitri Volkov · Mar 25, 2026

Which databases can I connect to with this server?

It works with any DBMS that has a SQLAlchemy driver and an ODBC driver, such as Virtuoso (tested) and PostgreSQL; you just configure the appropriate ODBC DSN and SQLAlchemy URL.

Asked by Elena Rossi · Mar 24, 2026

What is the cost to use mcp-sqlalchemy-server?

The tool is open‑source and freely available on GitHub, so there are no licensing fees; you only incur any infrastructure costs for hosting the FastAPI service.

Asked by Kalinda Reddy · Jan 24, 2026

提问

服务配缩器 的替代品