ODBC MCP Server
Provides specialized support for Sage 100 Advanced via the ProvideX ODBC driver, with company code selection and Sage-specific configuration options
Allows querying SQLite databases via ODBC connections, with support for listing tables, retrieving schema information, and executing read-only SQL queries
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ODBC MCP Servershow me the first 10 customers from the database"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ODBC MCP Server
An MCP (Model Context Protocol) server that enables LLM tools like Claude Desktop to query databases via ODBC connections. This server allows Claude and other MCP clients to access, analyze, and generate insights from database data while maintaining security and read-only safeguards.
Features
Connect to any ODBC-compatible database
Support for multiple database connections
Flexible configuration through config files or Claude Desktop settings
Read-only safeguards to prevent data modification
Easy installation with UV package manager
Detailed error reporting and logging
Related MCP server: MCPDB - Database Access MCP Server
Prerequisites
Python 3.10 or higher
UV package manager
ODBC drivers for your database(s) installed on your system
For Sage 100 Advanced: ProvideX ODBC driver
Installation
git clone https://github.com/tylerstoltz/mcp-odbc.git
cd mcp-odbc
uv venv
.venv\Scripts\activate # On Mac / Linux: source .venv/bin/activate (untested)
uv pip install -e .Configuration
The server can be configured through:
A dedicated config file
Environment variables
Claude Desktop configuration
General Configuration Setup
Create a configuration file (.ini) with your database connection details:
[SERVER]
default_connection = my_database
max_rows = 1000
timeout = 30
[my_database]
dsn = MyDatabaseDSN
username = your_username
password = your_password
readonly = trueSQLite Configuration
For SQLite databases with ODBC:
[SERVER]
default_connection = sqlite_db
max_rows = 1000
timeout = 30
[sqlite_db]
dsn = SQLite_DSN_Name
readonly = trueSage 100 ProvideX Configuration
ProvideX requires special configuration for compatibility. Use this minimal configuration for best results:
[SERVER]
default_connection = sage100
max_rows = 1000
timeout = 60
[sage100]
dsn = YOUR_PROVIDEX_DSN
username = your_username
password = your_password
company = YOUR_COMPANY_CODE
readonly = trueImportant notes for ProvideX:
Use a minimal configuration - adding extra parameters may cause connection issues
Always set
readonly = truefor safetyThe
companyparameter is required for Sage 100 connectionsAvoid changing connection attributes after connection is established
Claude Desktop Integration
To configure the server in Claude Desktop:
Open or create
claude_desktop_config.json:Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
Add MCP server configuration:
{
"mcpServers": {
"odbc": {
"command": "uv",
"args": [
"--directory",
"C:\\path\\to\\mcp-odbc",
"run",
"odbc-mcp-server",
"--config",
"C:\\path\\to\\mcp-odbc\\config\\your_config.ini"
]
}
}
}Usage
Starting the Server Manually
# Start with default configuration
odbc-mcp-server
# Start with a specific config file
odbc-mcp-server --config path/to/config.iniUsing with Claude Desktop
Configure the server in Claude Desktop's config file as shown above
Restart Claude Desktop
The ODBC tools will automatically appear in the MCP tools list
Available MCP Tools
The ODBC MCP server provides these tools:
list-connections: Lists all configured database connections
list-available-dsns: Lists all available DSNs on the system
test-connection: Tests a database connection and returns information
list-tables: Lists all tables in the database
get-table-schema: Gets schema information for a table
execute-query: Executes an SQL query and returns results
Example Queries
Try these prompts in Claude Desktop after connecting the server:
"Show me all the tables in the database"
"What's the schema of the Customer table?"
"Run a query to get the first 10 customers"
"Find all orders placed in the last 30 days"
"Analyze the sales data by region and provide insights"
Troubleshooting
Connection Issues
If you encounter connection problems:
Verify your ODBC drivers are installed correctly
Test your DSN using the ODBC Data Source Administrator
Check connection parameters in your config file
Look for detailed error messages in Claude Desktop logs
ProvideX-Specific Issues
For Sage 100/ProvideX:
Use minimal connection configuration (DSN, username, password, company)
Make sure the Company parameter is correct
Use the special ProvideX configuration template
If you encounter
Driver not capableerrors, check that autocommit is being set at connection time
Missing Tables
If tables aren't showing up:
Verify user permissions for the database account
Check if the company code is correct (for Sage 100)
Try using fully qualified table names (schema.table)
License
MIT License - Copyright (c) 2024
This server cannot be deployed
Maintenance
Related MCP Connectors
Query 40 databases from Claude, ChatGPT, or Cursor — on any device. Read-only, encrypted, audited.
Query your Postgres from ChatGPT or Claude without exposing the database or handing over credentials. Run npx boltschema connect next to your database and it dials out over HTTPS — no inbound firewall rule, no open port, works with localhost and VPC-private databases. Read-only is enforced by a SQL guard, a Postgres READ ONLY transaction, and a scoped role generated for you.
Safe, read-only Postgres and MySQL access for AI agents. Audit log + column-level controls.
Query your org's data in natural language — read-only MCP access to SQL, NoSQL, files & warehouses.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceConnects Claude Desktop directly to databases, allowing it to explore database structures, write SQL queries, analyze datasets, and create reports through an API layer with tools for table exploration and query execution.3,303 PyPI419Mozilla Public 2.0
- FlicenseNot gradedqualityDmaintenanceProvides Claude Desktop with secure access to multiple database connections, allowing users to query MySQL, PostgreSQL, SQLite, and SQL Server databases directly through natural language.-
- AlicenseNot gradedqualityDmaintenanceEnables Claude Desktop to interact with MySQL, PostgreSQL, and Redis databases using natural language for data querying and schema analysis. It provides a secure interface with a default read-only mode to prevent unauthorized database modifications.48 npm929MIT
- AlicenseAqualityBmaintenanceEnables Claude Desktop to execute read-only SQL queries on MySQL databases via natural language, with dynamic connection switching and built-in security.3184 npm7MIT