MCP.so
登录

MCP Server ODBC via SQLAlchemy

@OpenLinkSoftware

基本信息

分类

其他

许可证

MIT

传输方式

stdio

作者

OpenLinkSoftware

关于 MCP Server ODBC via SQLAlchemy

A simple MCP ODBC server using FastAPI, ODBC and SQLAlchemy.

MCP Server ODBC via SQLAlchemy 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "my_database": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/mcp-sqlalchemy-server",
        "run",
        "mcp-sqlalchemy-server"
      ],
      "env": {
        "DB_URL": "virtuoso+pyodbc://user:password@VOS"
      }
    }
  }
}

MCP Server ODBC via SQLAlchemy 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is MCP Server ODBC via SQLAlchemy?

A lightweight MCP (Model Context Protocol) server for ODBC built with FastAPI, pyodbc, and SQLAlchemy. It connects to any database with a SQLAlchemy provider, with special support for Virtuoso DBMS. Designed for AI agents and applications that need structured database access via ODBC.

How to use MCP Server ODBC via SQLAlchemy?

Clone the repository, install dependencies with uv, configure an ODBC DSN in ~/.odbc.ini, set environment variables (ODBC_DSN, ODBC_USER, ODBC_PASSWORD, API_KEY), and run mcp-sqlalchemy-server. For Claude Desktop, add the server to claude_desktop_config.json as shown in the README.

Key features of MCP Server ODBC via SQLAlchemy

  • List schema names from the connected database
  • Retrieve table information by schema or default
  • Describe table structure including columns, keys, and nullability
  • Search tables by name substring
  • Execute stored procedures (Virtuoso-specific)
  • Run SQL queries returning JSONL or Markdown table results

Use cases of MCP Server ODBC via SQLAlchemy

  • AI agents querying relational databases via natural language
  • Automated database schema exploration for data cataloging
  • Reporting workflows that need Markdown-formatted query results
  • Integrating Virtuoso-specific features like SPARQL and SPASQL queries
  • Rapid prototyping of database-backed MCP tools

常见问题

1

What databases are supported?

Any DBMS with a SQLAlchemy provider, including Virtuoso, PostgreSQL, MySQL, and SQLite. Virtuoso-specific features like SPARQL and SPASQL queries are also available.

2

What are the runtime requirements?

Python 3, `uv` package manager, `unixODBC` with a configured DSN, and an ODBC driver for your target database.

3

How do I configure authentication?

Set `ODBC_USER`, `ODBC_PASSWORD`, and `API_KEY` environment variables. The API key is used for server-side authentication.

4

Can I query using formats other than JSON?

Yes. The server provides tools for JSON, JSON Lines (JSONL), and Markdown table output.

5

Does this server support stored procedures?

For Virtuoso, you can execute stored procedures. For other databases, you can run arbitrary SQL queries.

评论

其他 分类下的更多 MCP 服务器