MCP.so
登录

SQLite MCP Server

@madhavarora1988

基本信息

分类

数据库

传输方式

stdio

作者

madhavarora1988

关于 SQLite MCP Server

simple poc to demostrate an mcp server on top of sqlite db

SQLite MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "mcp_sqlite_poc": {
      "command": "python",
      "args": [
        "server.py"
      ]
    }
  }
}

SQLite MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is SQLite MCP Server?

A Model Context Protocol (MCP) server implementation that enables AI models to interact with SQLite databases through standardized tools. It provides query execution, schema discovery, row counting, and sample data insertion.

How to use SQLite MCP Server?

Install dependencies with pip install -r requirements.txt, configure the .env file (set DB_PATH, MCP_PORT, READ_ONLY), then start the server with python server.py on port 8080. Add it to Claude Desktop via the mcpServers configuration.

Key features of SQLite MCP Server

  • Execute SQL queries with validation and safety checks
  • Discover table schemas and list all tables
  • Count rows in specified tables
  • Insert sample data for demonstration (write mode)
  • Read-only mode for production safety
  • Collect user feedback stored in the database

Use cases of SQLite MCP Server

  • AI assistants querying a product database for inventory information
  • Generating reports from customer and order data
  • Prototyping applications with a sample database schema
  • Collecting and storing user feedback from AI interactions
  • Safely exploring database structures without risking data modification

常见问题

1

What is read-only mode and how do I enable it?

Set `READ_ONLY=true` in the `.env` file. Write operations like `insert_sample_data` and `add_feedback` are disabled in read-only mode.

2

What dependencies are required?

Python 3.8+ and the packages listed in `requirements.txt`. Install them with `pip install -r requirements.txt`.

3

Where does the database data live?

Data is stored in a single SQLite file specified by the `DB_PATH` environment variable (default: `sample.db`). The server creates a sample database with tables for products, customers, orders, and feedback if none exists.

4

What tools does the server provide?

The server offers six tools: `execute_query`, `list_tables`, `describe_table`, `count_rows`, `insert_sample_data`, and `add_feedback`. The last two are disabled in read-only mode.

5

How do I connect the server to Claude Desktop?

Add the server to your Claude Desktop configuration file with the command `<Path to UV>`, arguments `["--directory", "<Absolute Path to Project Workspace>", "run", "server.py"]`, and the server name `sqlite`.

评论

数据库 分类下的更多 MCP 服务器