MCP Server ODBC via SQLAlchemy
@OpenLinkSoftware
About MCP Server ODBC via SQLAlchemy
A simple MCP ODBC server using FastAPI, ODBC and SQLAlchemy.
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp-server-odbc": {
"command": "npx",
"args": [
"@modelcontextprotocol/inspector",
"uv",
"--directory",
"/path/to/mcp-sqlalchemy-server",
"run",
"mcp-sqlalchemy-server"
]
}
}
}Tools
No tools detected
Fetch the live tool list by running this server in a temporary sandbox using the button above.
Overview
What is MCP Server ODBC via SQLAlchemy?
A lightweight MCP server for ODBC databases built with FastAPI, pyodbc, and SQLAlchemy. It is compatible with Virtuoso DBMS and any DBMS that provides a SQLAlchemy driver (e.g., PostgreSQL, MySQL, SQLite). Designed for developers and AI assistants that need structured database access via the Model Context Protocol.
How to use MCP Server ODBC via SQLAlchemy?
Install the uv package manager, set up an ODBC Data Source Name (DSN), and configure environment variables (ODBC_DSN, ODBC_USER, ODBC_PASSWORD, API_KEY). Run the server with uv run mcp-sqlalchemy-server from the cloned repository. For Claude Desktop, add the server configuration to claude_desktop_config.json.
Key features of MCP Server ODBC via SQLAlchemy
- Retrieve and list database schemas.
- List tables for a specific schema or all schemas.
- Describe table structure including columns, keys, and nullability.
- Search tables by name substring.
- Execute SQL queries with JSONL or Markdown output.
- Execute stored procedures (Virtuoso‑specific).
- Execute SPASQL and SPARQL queries (Virtuoso‑specific).
- Interact with the Virtuoso Support Assistant AI.
Use cases of MCP Server ODBC via SQLAlchemy
- Query a database and get results in a format suitable for AI analysis.
- Explore database schema and table metadata without a separate client.
- Generate Markdown reports from SQL queries.
- Use Virtuoso‑specific features like SPARQL and AI assistant from MCP clients.
FAQ from MCP Server ODBC via SQLAlchemy
What databases are supported?
Compatible with any DBMS that has a SQLAlchemy provider, including Virtuoso, PostgreSQL, MySQL, and SQLite.
How do I authenticate with the server?
Authentication is handled via the API_KEY environment variable; no additional authentication mechanism is described.
What are the prerequisites?
You need uv, a working unixODBC installation with an ODBC DSN configured, and the corresponding SQLAlchemy/pyodbc driver.
Are there Virtuoso‑only features?
Yes: executing SPASQL and SPARQL queries, running stored procedures, and using the Virtuoso Support Assistant AI tool.
Which transport does the server use?
The README does not specify the transport protocol; it is configured as a standard MCP server for Claude Desktop (stdio).
Frequently asked questions
What databases are supported?
Compatible with any DBMS that has a SQLAlchemy provider, including Virtuoso, PostgreSQL, MySQL, and SQLite.
How do I authenticate with the server?
Authentication is handled via the `API_KEY` environment variable; no additional authentication mechanism is described.
What are the prerequisites?
You need `uv`, a working unixODBC installation with an ODBC DSN configured, and the corresponding SQLAlchemy/pyodbc driver.
Are there Virtuoso‑only features?
Yes: executing SPASQL and SPARQL queries, running stored procedures, and using the Virtuoso Support Assistant AI tool.
Which transport does the server use?
The README does not specify the transport protocol; it is configured as a standard MCP server for Claude Desktop (stdio).
Basic information
More Other MCP servers
MCP Toolbox for Databases
googleapisMCP Toolbox for Databases is an open source MCP server for databases.
Production-ready MCP integrations for AI applications
Klavis-AIKlavis AI: MCP integration platforms that let AI agents use tools reliably at any scale

Peekaboo MCP – lightning-fast macOS screenshots for AI agents
steipetePeekaboo is a macOS CLI & optional MCP server that enables AI agents to capture screenshots of applications, or the entire system, with optional visual question answering through local or remote AI models.
Inbox Zero AI
elie222The world's best AI personal assistant for email. Open source app to help you reach inbox zero fast.
IDA Pro MCP
mrexodiaAI-powered reverse engineering assistant that bridges IDA Pro with language models through MCP.
Comments