Node.js implementation of the SQLite MCP server, runnable with npx where the Python uvx version is unavailable.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add sqlite-npx --env NODE_PATH='<NODE_PATH>' --env PATH='<PATH>' -- npx -y @smithery/cli install mcp-server-sqlite-npx --client claude~/.codex/config.toml
[mcp_servers.sqlite-npx]
command = "npx"
args = ["-y", "@smithery/cli", "install", "mcp-server-sqlite-npx", "--client", "claude"]
env = { NODE_PATH = "<NODE_PATH>", PATH = "<PATH>" }
# codex mcp add sqlite-npx --env NODE_PATH='<NODE_PATH>' --env PATH='<PATH>' -- npx -y @smithery/cli install mcp-server-sqlite-npx --client claude~/.cursor/mcp.json
{
"mcpServers": {
"sqlite-npx": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"mcp-server-sqlite-npx",
"--client",
"claude"
],
"env": {
"NODE_PATH": "<NODE_PATH>",
"PATH": "<PATH>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"sqlite-npx": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"mcp-server-sqlite-npx",
"--client",
"claude"
],
"env": {
"NODE_PATH": "<NODE_PATH>",
"PATH": "<PATH>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"sqlite-npx": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"mcp-server-sqlite-npx",
"--client",
"claude"
],
"env": {
"NODE_PATH": "<NODE_PATH>",
"PATH": "<PATH>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"sqlite-npx": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"mcp-server-sqlite-npx",
"--client",
"claude"
],
"env": {
"NODE_PATH": "<NODE_PATH>",
"PATH": "<PATH>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"sqlite-npx": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"mcp-server-sqlite-npx",
"--client",
"claude"
],
"env": {
"NODE_PATH": "<NODE_PATH>",
"PATH": "<PATH>"
}
}
}
}需要的环境变量
NODE_PATHPATH
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。