This document covers the set up and use of a generic ODBC server for the Model Context Protocol (MCP), referred to as an mcp-odbc server. It has been developed to provide Large Language Models with…
mcp-odbc-server is an MCP project maintained in the openlinksoftware/mcp-odbc-server repository. The maintainer describes its purpose as “This document covers the set up and use of a generic ODBC server for the Model Context Protocol (MCP), referred to as an mcp-odbc server…”. Read the project documentation for the complete scope.
The project provides a local client configuration using /path/to/.nvm/versions/node/v21.1.0/bin/node. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.
The example declares ODBCINI, NODE_VERSION, PATH. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.
Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.
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 SPARQL 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, i.e., 30 seconds. |
| format | string, optional): Desired result format. Defaults to 'json'. |
| prompt | string, required): The prompt text for the AI function. |
| api_key | string, optional): API key for the AI service. Defaults to "none". |
| get_schemas | List database schemas accessible to connected database management system (DBMS). |
| get_tables | List tables associated with a selected database schema. |
| describe_table | Provide the description of a table associated with a designated database schema. This includes information about column names, data types, null handling… |
| filter_table_names | List tables associated with a selected database schema, based on a substring pattern from the q input field. |
| query_database | Execute a SQL query and return results in JSON Lines (JSONL) format. |
| execute_query | Execute a SQL query and return results in JSON Lines (JSONL) format. |
| execute_query_md | Execute a SQL query and return results in Markdown table format. |
| spasql_query | Execute a SPASQL query and return results. |
| sparql_query | Execute a SPARQL query and return results. |
| virtuoso_support_ai | Interact with the Virtuoso Support Assistant/Agent — a Virtuoso-specific feature for interacting with LLMs |
{
"mcpServers": {
"ODBC": {
"command": "/path/to/.nvm/versions/node/v21.1.0/bin/node",
"args": [
"/path/to/mcp-odbc-server/node_modules/.bin/tsx",
"/path/to/mcp-odbc-server/src/main.ts"
],
"env": {
"ODBCINI": "/Library/ODBC/odbc.ini",
"NODE_VERSION": "v21.1.0",
"PATH": "~/.nvm/versions/node/v21.1.0/bin:${PATH}"
},
"disabled": false,
"autoApprove": []
}
}
}From the project documentation. Replace placeholders and example paths before connecting.
| Variable | Description | Required |
|---|---|---|
| ODBCINI | Declared in the maintainer’s client configuration. | Check documentation |
| NODE_VERSION | Declared in the maintainer’s client configuration. | Check documentation |
| PATH | Declared in the maintainer’s client configuration. | Check documentation |
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.