提供数据库交互及商业智能分析能力的镜像
SQLite (已归档) MCP Server
镜像概述和主要用途
提供数据库交互和商业智能分析能力。
https://www.anthropic.com/news/model-context-protocol
核心功能和特性
基本信息
| 属性 | 详情 |
|---|---|
| Docker镜像 | https://hub.docker.com/repository/docker/mcp/sqlite |
| 作者 | https://github.com/modelcontextprotocol |
| 代码仓库 | https://github.com/modelcontextprotocol/servers |
| Dockerfile | https://github.com/modelcontextprotocol/servers/blob/2025.4.24/src/sqlite/Dockerfile |
| Docker镜像构建者 | Docker Inc. |
| Docker Scout健康评分 | |
| 验证签名 | COSIGN_REPOSITORY=mcp/signatures cosign verify mcp/sqlite --key https://raw.githubusercontent.com/docker/keyring/refs/heads/main/public/mcp/latest.pub |
| 许可证 | MIT许可证 |
可用工具 (6个)
| 服务器提供的工具 | 简短描述 |
|---|---|
append_insight | 向备忘录添加业务洞察 |
create_table | 在SQLite数据库中创建新表 |
describe_table | 获取特定表的架构信息 |
list_tables | 列出SQLite数据库中的所有表 |
read_query | 在SQLite数据库上执行SELECT查询 |
write_query | 在SQLite数据库上执行INSERT、UPDATE或DELETE查询 |
工具详情
工具: append_insight
向备忘录添加业务洞察
| 参数 | 类型 | 描述 |
|---|---|---|
insight | string | 从数据分析中发现的业务洞察 |
工具: create_table
在SQLite数据库中创建新表
| 参数 | 类型 | 描述 |
|---|---|---|
query | string | CREATE TABLE SQL语句 |
工具: describe_table
获取特定表的架构信息
| 参数 | 类型 | 描述 |
|---|---|---|
table_name | string | 要描述的表名 |
工具: list_tables
列出SQLite数据库中的所有表
工具: read_query
在SQLite数据库上执行SELECT查询
| 参数 | 类型 | 描述 |
|---|---|---|
query | string | 要执行的SELECT SQL查询 |
工具: write_query
在SQLite数据库上执行INSERT、UPDATE或DELETE查询
| 参数 | 类型 | 描述 |
|---|---|---|
query | string | 要执行的SQL查询 |
使用场景和适用范围
该MCP Server适用于需要通过SQLite数据库进行数据交互和业务智能分析的场景,特别是在AI应用开发中需要与数据库进行安全交互的场景。
详细的使用方法和配置说明
Docker部署方案
Docker Run命令示例
bashdocker run -i --rm -v /本地目录:/本地目录 docker.xuanyuan.run/mcp/sqlite --db-path /mcp/db.sqlite
MCP Server配置示例
json{ "mcpServers": { "SQLite": { "command": "docker", "args": [ "run", "-i", "--rm", "-v", "/本地目录:/本地目录", "mcp/sqlite", "--db-path", "/mcp/db.sqlite" ] } } }
参数说明
| 参数 | 描述 |
|---|---|
--db-path | SQLite数据库文件路径,默认为/mcp/db.sqlite |
为什么使用Docker运行MCP Server更安全?
https://www.docker.com/blog/the-model-context-protocol-simplifying-building-ai-apps-with-anthropic-claude-desktop-and-docker/
镜像拉取方式
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
DockerHub 原生拉取命令
docker pull mcp/sqlite:<标签>
用户好评
来自真实用户的反馈,见证轩辕镜像的优质服务