SQL Data MCP Server
Provides capability for Claude to interact with a local SQLite database, enabling natural language questions to be answered by listing tables, describing table schemas, and executing read-only SQL queries.
Click on "Install 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., "@SQL Data MCP Serverlist all tables in 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.
SQL Data MCP Server
A custom Model Context Protocol (MCP) server that gives Claude Desktop direct access to a SQLite database — enabling natural language questions to be answered through real, live SQL execution.
What This Does
Instead of copy-pasting data into a chat, this server exposes a local SQLite database as a set of tools Claude can call directly. Ask a question in plain English, and Claude decides which tool to use, writes the SQL, executes it against the real database, and returns the results.
Related MCP server: Gestao-MCP
Tools Exposed
list_tables()— Lists all tables in the databasedescribe_table(table_name)— Shows column names and types for a given tablerun_query(sql)— Executes a read-only SELECT query and returns the results
Tech Stack
Python with the official
mcpSDK (FastMCP)SQLite for the local database
Claude Desktop as the MCP Host
How It Works
Claude Desktop is configured (via claude_desktop_config.json) to launch this server as a subprocess. Each Python function decorated with @mcp.tool() is automatically exposed to Claude — the decorator reads the function's name, type hints, and docstring to build the tool schema, so no manual JSON schema writing is required.
When a user asks a question, Claude reasons about which tool to call, requests permission to run it, executes it, and uses the real result to answer — genuine tool use, not a simulated response.
Setup
Clone this repo
Install dependencies:
pip install -r requirements.txtBuild the database:
python create_db.pyAdd this server to your
claude_desktop_config.json:
{
"mcpServers": {
"sql-data-server": {
"command": "/path/to/python.exe",
"args": ["/path/to/server.py"]
}
}
}Fully restart Claude Desktop
Ask Claude a question about your data — e.g. "What tables are available, and what's the average purchase amount by customer segment?"
Note on Paths
server.py computes the database path relative to its own file location (os.path.dirname(os.path.abspath(__file__))) rather than assuming a working directory — this ensures it works correctly regardless of what directory the MCP Host launches the process from.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Meshach22/sql-data-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server