MCP Server ODBC via PyODBC
@OpenLinkSoftware
关于 MCP Server ODBC via PyODBC
A simple MCP ODBC server using FastAPI, ODBC and PyODBC.
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"mcp-pyodbc-server": {
"command": "npx",
"args": [
"@modelcontextprotocol/inspector",
"uv",
"--directory",
"/path/to/mcp-pyodbc-server",
"run",
"mcp-pyodbc-server"
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is MCP Server ODBC via PyODBC?
It is a lightweight MCP (Model Context Protocol) server that provides ODBC database access via FastAPI and pyodbc. It is compatible with Virtuoso DBMS and any other DBMS that has an ODBC driver.
How to use MCP Server ODBC via PyODBC?
Install uv and configure an ODBC Data Source Name (DSN) in ~/.odbc.ini. Clone the repository, set environment variables (ODBC_DSN, ODBC_USER, ODBC_PASSWORD, API_KEY) in a .env file. For Claude Desktop, add the server to claude_desktop_config.json using the uv command. The server exposes tools such as podbc_get_schemas, podbc_get_tables, podbc_describe_table, podbc_filter_table_names, podbc_query_database, and Virtuoso‑specific tools.
Key features of MCP Server ODBC via PyODBC
- List database schemas via
podbc_get_schemas - Retrieve table names and metadata per schema
- Describe table structure including columns, keys, and nullability
- Search tables by name substring
- Execute SQL queries returning JSONL or Markdown results
- Support for Virtuoso‑specific SPASQL queries and AI assistant
Use cases of MCP Server ODBC via PyODBC
- Discover available schemas and tables in any ODBC‑connected database
- Inspect table definitions for data modeling or migration tasks
- Execute SQL queries from MCP clients and receive structured results
- Run SPASQL (SQL/SPARQL hybrid) queries against Virtuoso DBMS
- Interact with Virtuoso’s AI Support Assistant via a dedicated tool
FAQ from MCP Server ODBC via PyODBC
What are the runtime dependencies?
uv (package installer), pyodbc, and unixODBC with a properly configured ODBC DSN. An .env file must set ODBC_DSN, ODBC_USER, ODBC_PASSWORD, and API_KEY.
Which databases are supported?
Any DBMS that provides an ODBC driver. Virtuoso is explicitly supported, and the server works with other ODBC‑compatible databases.
How is authentication handled?
Authentication is passed via environment variables (ODBC_USER, ODBC_PASSWORD) or per‑call optional parameters. An API_KEY is used for additional security and can be configured in the environment.
Where does the data live?
The data remains in the remote database system accessed through the ODBC connection. No data is stored locally by the server.
What transport protocol does the server use?
The server communicates over standard MCP via stdio. For debugging, the MCP Inspector can be used with npx.
其他 分类下的更多 MCP 服务器
Awesome-MCP-ZH
yzflyMCP 资源精选, MCP指南,Claude MCP,MCP Servers, MCP Clients
Inbox Zero AI
elie222The world's best AI personal assistant for email. Open source app to help you reach inbox zero fast.
MCP Go 🚀
mark3labsA Go implementation of the Model Context Protocol (MCP), enabling seamless integration between LLM applications and external data sources and tools.
Production-ready MCP integrations for AI applications
Klavis-AIKlavis AI: MCP integration platforms that let AI agents use tools reliably at any scale

EverArt
modelcontextprotocolModel Context Protocol Servers
评论