MCP SQLite Server

local-only server

The server can only run on the client’s local machine because it depends on local resources.

Integrations

  • Implements a Model Context Protocol server for SQLite databases, allowing AI assistants to query and interact with SQLite databases

MCP SQLite サーバー

公式Pythonリファレンスに基づいた、モデルコンテキストプロトコルSQLiteサーバーのNode.js実装。このバージョンは、 LibreChatなど、PythonのUVXランナーが利用できない環境向けに、npxベースの代替手段を提供します。

Claude Desktop で使用する

Smithery経由でインストール

Smithery経由で Claude Desktop 用の MCP SQLite Server を自動的にインストールするには:

npx -y @smithery/cli install mcp-server-sqlite-npx --client claude

手動でインストールする

claude_desktop_config.jsonに以下を追加します。

{ "mcpServers": { "sqlite": { "command": "/absolute/path/to/npx", "args": [ "-y", "mcp-server-sqlite-npx", "/absolute/path/to/database.db" ], "env": { "PATH": "/absolute/path/to/executables", "NODE_PATH": "/absolute/path/to/node_modules" } } } }

macOS で nvm を使用する場合の完全な例:

{ "mcpServers": { "sqlite": { "command": "/Users/{username}/.nvm/versions/node/v22.12.0/bin/npx", "args": [ "-y", "mcp-server-sqlite-npx", "/Users/{username}/projects/database.db" ], "env": { "PATH": "/Users/{username}/.nvm/versions/node/v22.12.0/bin:/usr/local/bin:/usr/bin:/bin", "NODE_PATH": "/Users/{username}/.nvm/versions/node/v22.12.0/lib/node_modules" } } } }

Windows で nvm を使用する場合の完全な例:

{ "mcpServers": { "sqlite": { "command": "C:\\Program Files\\nodejs\\npx.cmd", "args": [ "-y", "mcp-server-sqlite-npx", "C:\\Users\\{username}\\projects\\database.db" ], "env": { "PATH": "C:\\Program Files\\nodejs;%PATH%", "NODE_PATH": "C:\\Program Files\\nodejs\\node_modules" } } } }

発達

  1. 依存関係をインストールします:
npm ci
  1. TypeScript コードをビルドします。
npm run build

MCP Inspectorによるテスト

MCP Inspector ツールを使用してサーバーをテストできます。

npx @modelcontextprotocol/inspector node dist/index.js /absolute/path/to/database.db

サーバーの使用を開始するには、 ConnectToolsに移動します。

Claude Desktop によるテスト

claude_desktop_config.jsonに以下を追加します。

{ "mcpServers": { "sqlite": { "command": "/absolute/path/to/node", "args": [ "/absolute/path/to/dist/index.js", "/absolute/path/to/database.db" ] } } }

例:

  • /absolute/path/to/node : /Users/{username}/.nvm/versions/node/v20.18.1/bin/node
  • /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}
-
security - not tested
F
license - not found
-
quality - not tested

SQLite を使用したモデル コンテキスト プロトコル サーバーの Node.js 実装。Python の UVX ランナーがない環境に npx ベースの代替手段を提供します。

  1. Use with Claude Desktop
    1. Installing via Smithery
    2. Installing Manually
  2. Development
    1. Testing with MCP Inspector
    2. Testing with Claude Desktop
    3. Publish
ID: g0zgwpqegg