ODBC MCP Server
MCP server for connecting clients like Claude Desktop to ODBC data sources
Overview
ODBC MCP Server is a Model Context Protocol (MCP) server that allows clients like Claude Desktop to connect to ODBC-compatible databases, enabling them to query, analyze, and generate insights from database data securely.
To use the ODBC MCP Server, install it using the UV package manager, configure it with your database connection details, and start the server. Then, integrate it with Claude Desktop to access ODBC tools.
- Connects to any ODBC-compatible database - Supports multiple database connections - Flexible configuration options - Read-only safeguards to prevent data modification - Easy installation and detailed error reporting
- Querying data from various databases using Claude Desktop.
- Analyzing database data for insights and reporting.
- Testing database connections and retrieving schema information.
Add to your AI client
Use these steps to connect ODBC MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcp-odbc-tylerstoltz": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-odbc-tylerstoltz"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcp-odbc-tylerstoltz": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-odbc-tylerstoltz"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-odbc-tylerstoltz": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-odbc-tylerstoltz"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-odbc-tylerstoltz": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-odbc-tylerstoltz"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-odbc-tylerstoltz": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-odbc-tylerstoltz"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-odbc-tylerstoltz": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-odbc-tylerstoltz"
]
}
}
}FAQ
What databases can I connect to?
Any ODBC-compatible database can be connected.
Is there a read-only mode?
Yes, the server has read-only safeguards to prevent data modification.
How do I troubleshoot connection issues?
Verify ODBC drivers, check DSN configurations, and consult error logs.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":3656,"uuid":"3e18754d-8dcf-40c4-afb9-dcd3c0a8bc1f","name":"mcp-odbc","title":"ODBC MCP Server","description":"MCP server for connecting clients like Claude Desktop to ODBC data sources","avatar_url":"https://avatars.githubusercontent.com/u/194432593?v=4","created_at":"2025-03-20T20:40:20.764Z","updated_at":"2025-03-20T20:59:50.607Z","status":"created","author_name":"tylerstoltz","author_avatar_url":"https://avatars.githubusercontent.com/u/194432593?v=4","tags":"[]","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/tylerstoltz/mcp-odbc","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"MIT license\",\"language\":\"Python\",\"is_official\":false,\"latest_commit_time\":\"2025-03-20 16:57:57\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]