SQLite MCP Server

Databasestdiov2026.1.26
代码仓库

MCP server for SQLite database interaction and business intelligence. Enables AI agents to query SQLite databases, create and modify tables, run analytical queries, and generate insights from data. Supports read-write operations with transaction safety and provides schema introspection for understanding database structure.

连接

将此配置添加到 .claude/mcp.json

{
  "mcpServers": {
    "sqlite": {
      "command": "uvx",
      "args": [
        "mcp-server-sqlite",
        "--db-path",
        "./database.db"
      ]
    }
  }
}

工具 (5)

read_query

Execute a SELECT query against the SQLite database.

{
  "type": "object",
  "required": [
    "query"
  ],
  "properties": {
    "query": {
      "type": "string",
      "description": "SQL SELECT query to execute"
    }
  }
}

write_query

Execute an INSERT, UPDATE, or DELETE query against the database.

{
  "type": "object",
  "required": [
    "query"
  ],
  "properties": {
    "query": {
      "type": "string",
      "description": "SQL write query to execute"
    }
  }
}

create_table

Create a new table in the SQLite database.

{
  "type": "object",
  "required": [
    "query"
  ],
  "properties": {
    "query": {
      "type": "string",
      "description": "CREATE TABLE SQL statement"
    }
  }
}

list_tables

List all tables in the SQLite database.

{
  "type": "object",
  "properties": {}
}

describe_table

Get the schema of a specific table including columns and types.

{
  "type": "object",
  "required": [
    "table_name"
  ],
  "properties": {
    "table_name": {
      "type": "string",
      "description": "Name of the table to describe"
    }
  }
}

资源

此服务器未提供任何资源。

提示词

此服务器未提供任何提示词。

服务器信息

作者
Anthropic (@modelcontextprotocol)
代码仓库
https://github.com/modelcontextprotocol/servers
许可证
Apache-2.0
版本
2026.1.26
星标
86,206
最后更新
2026年1月27日