sqlite-explorer-fastmcp-mcp-server
SQLite エクスプローラー MCP サーバー
モデルコンテキストプロトコル(MCP)を介してSQLiteデータベースへの安全な読み取り専用アクセスを提供するMCPサーバー。このサーバーはFastMCPフレームワークを使用して構築されており、LLMは組み込みの安全機能とクエリ検証を使用してSQLiteデータベースを探索およびクエリできます。
📋 システム要件
Python 3.6以上
SQLite データベース ファイル (環境変数で指定されたパス)
Related MCP server: sqlite-mcp-server
📦 依存関係
必要な依存関係をすべてインストールします。
# Using pip
pip install -r requirements.txt必要なパッケージ
fastmcp : モデルコンテキストプロトコルサーバーを構築するためのフレームワーク
すべての依存関係はrequirements.txtに指定されており、簡単にインストールできます。
📑 目次
🛠️ MCP ツール
サーバーは、LLM に次のツールを公開します。
読み取りクエリ
安全性検証が組み込まれたデータベースに対して SELECT クエリを実行します。機能:
クエリの検証とサニタイズ
パラメータバインディングのサポート
行制限の強制
辞書としてフォーマットされた結果
リストテーブル
データベース内の使用可能なすべてのテーブルとその名前を一覧表示します。
テーブルの説明
特定のテーブルの詳細なスキーマ情報を取得します。これには以下が含まれます。
列名と型
NULL制約
デフォルト値
主キー情報
🚀 はじめに
リポジトリをクローンします。
git clone https://github.com/hannesrudolph/sqlite-explorer-fastmcp-mcp-server.git
cd sqlite-explorer-fastmcp-mcp-server📦 インストールオプション
このMCPサーバーは、Claude DesktopまたはCline VSCodeプラグインのいずれかにインストールできます。ニーズに最適なオプションをお選びください。
オプション1: Claude Desktop 用にインストール
FastMCP を使用してインストールします。
fastmcp install sqlite_explorer.py --name "SQLite Explorer" -e SQLITE_DB_PATH=/path/to/db/path/to/db SQLite データベース ファイルへのパスに置き換えます。
オプション2: Cline VSCodeプラグインをインストールする
このサーバーをCline VSCodeプラグインで使用するには:
VSCodeで、Clineプラグインサイドバーのサーバーアイコン(☰)をクリックします。
「MCP設定の編集」ボタン(✎)をクリックします。
設定ファイルに次の構成を追加します。
{
"sqlite-explorer": {
"command": "uv",
"args": [
"run",
"--with",
"fastmcp",
"--with",
"uvicorn",
"fastmcp",
"run",
"/path/to/repo/sqlite_explorer.py"
],
"env": {
"SQLITE_DB_PATH": "/path/to/your/database.db"
}
}
}交換する:
/path/to/repoこのリポジトリをクローンした場所へのフルパスを指定します (例:/Users/username/Projects/sqlite-explorer-fastmcp-mcp-server)/path/to/your/database.dbSQLite データベースファイルへのフルパスで置き換えます。
🔒 安全機能
SQLite データベースへの読み取り専用アクセス
クエリの検証とサニタイズ
安全なクエリ実行のためのパラメータバインディング
行制限の強制
クリーンな JSON レスポンスの進行状況出力の抑制
📚 開発ドキュメント
リポジトリには開発用のドキュメント ファイルが含まれています。
mcp-documentation.txt: MCP サーバーの実装と FastMCP フレームワークの使用に関する包括的なドキュメントが含まれています。
このドキュメントは機能を開発する際のコンテキストとして機能し、LLM と組み合わせて使用することで開発を支援できます。
⚙️ 環境変数
次の環境変数を設定する必要があります。
SQLITE_DB_PATH: 探索するSQLiteデータベースファイルへのフルパス
This server cannot be installed
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
- AlicenseNot gradedqualityCmaintenanceAn MCP server that enables AI agents to interact with SQLite databases by querying schemas, executing SQL, and inspecting table metadata. It supports safe database access through configurable read-only modes, query timeouts, and dry-run execution plans.MIT
- AlicenseNot gradedqualityCmaintenanceA read-only MCP server that enables LLMs to safely explore and query any SQLite database via natural language. It exposes tools for listing tables, describing schemas, and executing SELECT/WITH queries with built-in safety guards like write prevention and row limits.MIT
- AlicenseNot gradedqualityBmaintenanceAn MCP server that provides safe, read-only SQL access for AI agents to query databases (PostgreSQL, MySQL, SQLite) with schema awareness and guardrails.18MIT
- FlicenseNot gradedqualityCmaintenanceMCP server enabling natural-language querying of SQLite databases via schema discovery, GraphRAG retrieval, and safely guarded read-only SQL execution.
Related MCP Connectors
MCP server for AI dialogue using various LLM models via AceDataCloud
MCP server providing access to the Scorecard API to evaluate and optimize LLM systems.
Read-only MCP server for ClassQuill, a tutoring-business-management platform.
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/hannesrudolph/sqlite-explorer-fastmcp-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server