mcp-odbc-server logo

mcp-odbc-serverTypescript based Model Context Procotol (MCP) Server for Open Database Connectivity (ODBC)

(0)
Daniel NikulshynReviewed by Daniel Nikulshyn·Updated July 2026

Overview

The mcp-odbc-server is a TypeScript-based Model Context Protocol (MCP) server that provides Large Language Models with transparent access to ODBC-accessible data sources. It acts as a bridge between the MCP clients and the host system's local ODBC Driver Manager, routing calls via node.js. The server is built on top of node-odbc and supports various ODBC Connectors, with examples primarily oriented toward the Virtuoso ODBC Connector. The server offers several tools for MCP client applications, including functions to list database schemas, tables, and table descriptions, as well as executing SQL queries, SPASQL queries, and SPARQL queries. It returns results in various formats such as JSON Lines (JSONL) and Markdown table format. To set up the server, users need to install node.js version 21.1.0 or higher, followed by MCP components using npm. The server's configuration is managed through environment variables set in a .env file, which includes bindings for the ODBC Data Source Name, User, Password, ODBC INI, and Large Language Model API Key. The mcp-odbc-server is designed to work with different database management systems (DBMS), and the project encourages code contributions and usage demos related to other DBMS for incorporation into the project. The key features of the server include its ability to interact with ODBC-accessible data sources, support for various query types, and its extensibility to work with different ODBC Connectors and DBMS.

Key features

  • get_schemas: List database schemas accessible to connected DBMS
  • get_tables: List tables associated with a selected database schema
  • describe_table: Provide table description, including column names, data types, and keys
  • filter_table_names: List tables based on a substring pattern
  • query_database: Execute SQL query and return results in JSON Lines format
  • execute_query: Execute SQL query and return results in JSON Lines format

Pricing

Model
Free
Category
MCP Servers
Rating
No reviews yet

Use cases

Large Language Model Data Access

Enable Large Language Models to access ODBC-accessible data sources for training, inference, or data retrieval tasks

Database Integration

Integrate the mcp-odbc-server with various database management systems and ODBC Connectors to provide a unified data access layer

Pros & Cons

Pros

  • Provides transparent access to ODBC-accessible data sources for Large Language Models
  • Supports multiple ODBC Connectors and database management systems
  • Offers a range of tools for MCP client applications, including schema and table retrieval, query execution, and more

Cons

  • Requires node.js version 21.1.0 or higher
  • Needs specific configuration and environment variables set up for ODBC Data Source Name, User, Password, and ODBC INI

Reviews

Sign in to leave a review.

No reviews yet. Be the first!

Q&A

Can I retrieve schema information before running queries?

Yes, the server exposes functions like get_schemas, get_tables, describe_table, and filter_table_names, letting clients list available schemas, tables, and their metadata before executing any SQL or SPARQL queries.

Asked by Ludovic Girard · Feb 17, 2026

What are the minimum requirements to run the mcp-odbc-server?

You need a recent Node.js runtime—version 21.1.0 or higher—plus environment variables for the ODBC Data Source Name, user credentials, and an ODBC INI configuration file. The server relies on node-odbc for driver communication.

Asked by Gustav Lindberg · Dec 12, 2025

How does the server return query results?

SQL, SPASQL, and SPARQL queries are executed through the server and the results are returned in either JSON Lines (JSONL) or a Markdown table format, depending on the client request.

Asked by Noelia Campos · Dec 11, 2025

What ODBC drivers are compatible with the mcp-odbc-server?

The server is built on node-odbc and supports any ODBC connector that works with node-odbc. Examples in the documentation focus on the Virtuoso ODBC Connector, but it can be used with other ODBC drivers that expose the required DSN, user, and password settings.

Asked by Bilal Choudhury · Nov 4, 2025

Ask a question

MCP Servers alternatives