SQLite Database Server
БесплатноНе проверенEnables AI agents to connect to and query an SQLite database through the Model Context Protocol, allowing natural language interaction with database tables and
Описание
Enables AI agents to connect to and query an SQLite database through the Model Context Protocol, allowing natural language interaction with database tables and data.
README
Objective
The Model Context Protocol (MCP) is revolutionizing how AI Agents connect to data. In the past, if you wanted an LLM to read your database, you had to write custom glue code, custom prompts, and a custom API.
With MCP, you write a standardized "Server". Once running, any MCP-compatible client (like Claude Desktop, an OpenAI agent, or cursor) can instantly connect to it, discover its tools, and query your database without you writing a single prompt!
Instructions
- Open
server.py. - Notice we are using the official
mcp.server.fastmcpmodule, which makes building an MCP server as easy as building a FastAPI app. - Implement
list_tables(). Use Python's built-insqlite3to connect toorders.db, query thesqlite_mastertable, and return a string containing all the table names. - Implement
read_query(sql). Connect to the database, execute the raw SQL string passed by the LLM, fetch the results, and return them as a formatted string. - Notice that
mcp.run()is called at the bottom. This starts the standard IO (stdio) server loop! - Run tests using
pytest. The test suite will literally spin up an official MCP Client, connect to your server over stdio, and ask it to list its tools and run a query!
Setup
pip install -r requirements.txt
Running Tests
pytest test_server.py
Установка SQLite Database Server
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/getinclub/template-build-mcp-serverFAQ
SQLite Database Server MCP бесплатный?
Да, SQLite Database Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для SQLite Database Server?
Нет, SQLite Database Server работает без API-ключей и переменных окружения.
SQLite Database Server — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить SQLite Database Server в Claude Desktop, Claude Code или Cursor?
Открой SQLite Database Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
wenb1n-dev/SmartDB_MCP
A universal database MCP server supporting simultaneous connections to multiple databases. It provides tools for database operations, health analysis, SQL optim
автор: wenb1n-devPostgres Server
This server enables interaction with PostgreSQL databases through the Model Context Protocol, optimized for the AWS Bedrock AgentCore Runtime. It provides tools
автор: madhurprashPostgres
Query your database in natural language
автор: AnthropicPostgreSQL
Read-only database access with schema inspection.
автор: modelcontextprotocolCompare SQLite Database Server with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории data
