OpenLinkSoftware/mcp-odbc-server
Typescript based Model Context Procotol (MCP) Server for Open Database Connectivity (ODBC)
Platform-specific configuration:
{
"mcpServers": {
"mcp-odbc-server": {
"command": "npx",
"args": [
"-y",
"mcp-odbc-server"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
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 transparent access to ODBC-accessible data sources via a Data Source Name configured for a specific ODBC Connector (also called an ODBC Driver).
This MCP Server for ODBC is a small TypeScript layer built on top of node-odbc. It routes calls to the host system's local ODBC Driver Manager via node.js (specifically using npx for TypeScript).
While the examples that follow are oriented toward the Virtuoso ODBC Connector, this guide will also work with other ODBC Connectors. We *strongly* encourage code contributions and submissions of usage demos related to other database management systems (DBMS) for incorporation into this project.
node.js version. If it's not 21.1.0 or higher, upgrade or install explicitly using: nvm install v21.1.0 npm install @modelcontextprotocol/sdk zod tsx odbc dotenvnvm version using: nvm alias default 21.1.0 git clone https://github.com/OpenLinkSoftware/mcp-odbc-server.git cd mcp-odbc-server npm init -y npm install @modelcontextprotocol/sdk zod tsx odbc dotenv odbcinst -j odbcinst -q -sAs good security pr
Loading reviews...