mcp-odbc-server MCP Server

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…

Local serverstdioISC

What is the mcp-odbc-server MCP Server?

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.

Local setup

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.

Configuration values

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.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
userstring, optional): Database username. Defaults to "demo".
passwordstring, optional): Database password. Defaults to "demo".
dsnstring, optional): ODBC data source name. Defaults to "Local Virtuoso".
schemastring, required): The database schema name containing the table.
tablestring, required): The name of the table to describe.
querystring, required): The SPARQL query string.
max_rowsnumber, optional): Maximum number of rows to return. Defaults to 20.
timeoutnumber, optional): Query timeout in milliseconds. Defaults to 30000, i.e., 30 seconds.
formatstring, optional): Desired result format. Defaults to 'json'.
promptstring, required): The prompt text for the AI function.
api_keystring, optional): API key for the AI service. Defaults to "none".
get_schemasList database schemas accessible to connected database management system (DBMS).
get_tablesList tables associated with a selected database schema.
describe_tableProvide the description of a table associated with a designated database schema. This includes information about column names, data types, null handling…
filter_table_namesList tables associated with a selected database schema, based on a substring pattern from the q input field.
query_databaseExecute a SQL query and return results in JSON Lines (JSONL) format.
execute_queryExecute a SQL query and return results in JSON Lines (JSONL) format.
execute_query_mdExecute a SQL query and return results in Markdown table format.
spasql_queryExecute a SPASQL query and return results.
sparql_queryExecute a SPARQL query and return results.
virtuoso_support_aiInteract with the Virtuoso Support Assistant/Agent — a Virtuoso-specific feature for interacting with LLMs

How to install the mcp-odbc-server MCP Server

{
  "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.

Configuration

VariableDescriptionRequired
ODBCINIDeclared in the maintainer’s client configuration.Check documentation
NODE_VERSIONDeclared in the maintainer’s client configuration.Check documentation
PATHDeclared in the maintainer’s client configuration.Check documentation