A lightweight MCP (Model Context Protocol) server for ODBC built with **FastAPI** and **pyodbc**. This server is compatible with Virtuoso DBMS and
A lightweight MCP (Model Context Protocol) server for ODBC built with FastAPI and pyodbc. This server is compatible with Virtuoso DBMS and any other DBMS
odbcinst -j 4. List available data source names by running: odbcinst -q -s 5. ODBC DSN Setup: Configure your ODBC Data Source Name (typically in ~/.odbc.ini) for the target database. Example for Virtuoso DBMS: ---Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.
Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.
| Tool | What it does |
|---|---|
| user | string, optional): Database username. Defaults to "demo". |
| password | string, optional): Database password. Defaults to "demo". |
| dsn | string, optional): ODBC data source name. Defaults to "Local Virtuoso". |
| schema | string, required): The database schema name containing the table. |
| table | string, required): The name of the table to describe. |
| query | string, required): The SPASQL query string. |
| max_rows | number, optional): Maximum number of rows to return. Defaults to 20. |
| timeout | number, optional): Query timeout in milliseconds. Defaults to 30000. |
| prompt | string, required): The prompt text for the AI function. |
| api_key | string, optional): API key for the AI service. Defaults to "none". |
| podbc_get_schemas | List database schemas accessible to connected database management system (DBMS). |
| podbc_get_tables | List tables associated with a selected database schema. |
| podbc_describe_table | Provide the description of a table associated with a designated database schema. This includes information about column names, data types, null handling, autoin |
| podbc_filter_table_names | List tables, based on a substring pattern from the q input field, associated with a selected database schema. |
| podbc_query_database | Execute a SQL query and return results in JSONL format. |
| podbc_execute_query | Execute a SQL query and return results in JSONL format. |
| podbc_execute_query_md | Execute a SQL query and return results in Markdown table format. |
| podbc_spasql_query | Execute a SPASQL query and return results. |
| podbc_virtuoso_support_ai | Interact with the Virtuoso Support Assistant/Agent -- a Virtuoso-specific feature for interacting with LLMs |
{
"mcpServers": {
"my_database": {
"command": "uv",
"args": [
"--directory",
"/path/to/mcp-pyodbc-server",
"run",
"mcp-pyodbc-server"
],
"env": {
"ODBC_DSN": "dsn_name",
"ODBC_USER": "username",
"ODBC_PASSWORD": "YOUR_ODBC_PASSWORD",
"API_KEY": "YOUR_API_KEY"
}
}
}
}From the project documentation. Replace placeholders and example paths before connecting.
odbcinst -j 4. List available data source names by running: odbcinst -q -s 5. ODBC DSN Setup: Configure your ODBC Data Source Name (typically in ~/.odbc.ini) for the target database. Example for Virtuoso DBMS: ---| Variable | Description | Required |
|---|---|---|
| ODBC_DSN | Declared in the maintainer’s client configuration. | Check documentation |
| ODBC_USER | Declared in the maintainer’s client configuration. | Check documentation |
| ODBC_PASSWORD | Declared in the maintainer’s client configuration. | Check documentation |
| API_KEY | Declared in the maintainer’s client configuration. | Optional |
Inspect PostgreSQL schemas and run read-only queries with the archived MCP reference server. Review its maintenance status before choosing it.
Connect the Notion MCP server to search workspace content and work with pages and databases through Notion’s hosted OAuth service.
Use the Supabase MCP server to inspect database schemas, query project data and retrieve docs through a project-scoped connection.
Query, modify and analyse local SQLite databases in conversation — the fastest way to chat with a data file.
Metabase ships its own MCP endpoint — search your BI content, build and run queries, and save questions and dashboards without leaving the chat.
Official MongoDB server covering data, schemas and Atlas management — from find queries to spinning up clusters.