shop-db MCP Server
shop-db MCP Server
AIエージェントにeコマースSQLiteデータベース(customers、orders、order_items、products)への分析アクセスを提供する読み取り専用のModel Context Protocolサーバーです。データを変更する機能は一切ありません。
**Node.js v24.19+**向けに構築されており、ネイティブのnode:sqliteとnode:testを使用してTypeScriptソースファイルを直接実行します(ビルドステップなし)。
セットアップ
npm installリポジトリにはプロジェクトルートにデータが入った./shop.dbがすでに含まれているため、シード手順は不要です。npm startやnpm testのいずれもこのファイルに書き込みません。サーバーは読み取り専用で開き、テストスイートはtests/fixtures/seed.sqlからtests/配下に独自の使い捨てデータベースを構築します。
Related MCP server: shop-mcp
サーバーの実行
npm startサーバーはstdio(StdioServerTransport)を介して通信します。これはMCPクライアント(Claude Code、Claude Desktopなど)によって起動されることを想定しており、対話的に実行するものではありません。
テスト
npm testtests/に対してnode --testを実行し、SQL検証のエッジケース(変更キーワード、コメント回避、複数ステートメントインジェクション、CTE、EXPLAIN)と、tests/fixtures/seed.sqlから構築された分離されたテストデータベースに対する3つのMCPツールのエンドツーエンドテストをカバーします。コミット済みの./shop.dbはテストスイートによって読み書きされることはありません。
データベースパスの設定
デフォルトでは、サーバーは./shop.db(起動時の作業ディレクトリからの相対パス)を読み取ります。DB_PATH環境変数で上書きできます:
DB_PATH=/absolute/path/to/shop.db npm startツール
list_tables— 4つのテーブルをそれぞれの簡単な説明付きで一覧表示します。describe_table— 1つのテーブル(tableName)またはすべてのテーブル(省略時)について、列定義、型、主キー、最大3件のサンプル行を表示します。read_query— 読み取り専用のSELECT/WITH/EXPLAIN/PRAGMAクエリ(query、必須)を実行し、最大limit行(オプション、デフォルト100、最大1000)を返します。変更の試み(INSERT、UPDATE、DELETE、DROPなど)は、SQLコメントで偽装されたりCTEにラップされたりしていても、明確なエラーで拒否されます。
AIエージェント設定
{
"mcpServers": {
"shop-db": {
"command": "node",
"args": ["/absolute/path/to/src/index.ts"],
"env": {
"DB_PATH": "/absolute/path/to/shop.db"
}
}
}
}プロジェクトドキュメント
AGENTS.md— このリポジトリで作業するAIコーディングエージェント向けの指示(シンボリックリンク経由でCLAUDE.mdとしても読み込まれます)。CONTEXT.md— ドメインモデルと安全性アーキテクチャ。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables AI agents to safely interact with a SQLite shop database through schema discovery, read-only SQL queries, and pre-built analytics reports like top customers, top products, and revenue summaries.692MIT
- FlicenseAqualityCmaintenanceEnables AI agents to answer analytical questions about an online store's SQLite database through specialized read-only tools, without any risk of modifying the underlying data.8
- FlicenseAqualityCmaintenanceEnables AI agents to safely inspect and query an SQLite e-commerce database with tools for listing tables, describing schemas, and running read-only SQL queries while blocking destructive operations.4
Related MCP Connectors
Explore, query, and inspect SQLite databases with ease. List tables, preview results, and view det…
Query PostgreSQL databases in plain English — LLM-generated, safety-validated SQL.
Run SOQL queries to explore and retrieve Salesforce data. Access accounts, contacts, opportunities…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/bulychauPI/shop-db-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server