MCP SQLite 服务器
基于官方 Python 参考 的模型上下文协议 SQLite 服务器的 Node.js 实现。此版本为 Python 的 UVX 运行器不可用的环境(例如LibreChat )提供了基于 npx 的替代方案。
与 Claude Desktop 一起使用
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装 MCP SQLite Server:
手动安装
将以下内容添加到claude_desktop_config.json
:
在 macoS 上使用 nvm 的完整示例:
在 Windows 上使用 nvm 的完整示例:
发展
- 安装依赖项:
- 构建 TypeScript 代码:
使用 MCP Inspector 进行测试
您可以使用MCP Inspector 工具测试服务器:
Connect
并转到Tools
以开始使用服务器。
使用 Claude Desktop 进行测试
将以下内容添加到claude_desktop_config.json
:
例子:
/absolute/path/to/node
:/Users/{username}/.nvm/versions/node/v20.18.1/bin/node
版本/节点/v20.18.1/bin/节点/absolute/path/to/index.js
:/Users/{username}/projects/mcp-server-sqlite-npx/dist/index.js
/absolute/path/to/database.db
: /Users/{用户名/Users/{username}/projects/database.db
发布
- 在 package.json 中增加版本
npm install
- 提交消息:
Release {version, eg 0.1.6}
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
使用 SQLite 的模型上下文协议服务器的 Node.js 实现,为缺少 Python 的 UVX 运行器的环境提供基于 npx 的替代方案。
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server that provides database interaction capabilities through SQLite, enabling users to run SQL queries, analyze business data, and automatically generate business insight memos.Last updated -69TypeScriptMIT License
- -securityAlicense-qualityA Model Context Protocol server that enables seamless execution of commands, Python code, web content fetching, and reusable task management with secure credentials handling.Last updated -2PythonMIT License
- -securityFlicense-qualityA Node.js application that provides a Model Context Protocol server for interacting with Harbor container registry, supporting operations for projects, repositories, tags, and Helm charts.Last updated -TypeScript
- -security-license-qualityA Model Context Protocol server that provides tools for connecting to and interacting with various database systems (SQLite, PostgreSQL, MySQL/MariaDB, SQL Server) through a unified interface.Last updated -Python