{"id":23629667,"url":"https://github.com/hannesrudolph/sqlite-explorer-fastmcp-mcp-server","last_synced_at":"2025-07-15T22:21:01.956Z","repository":{"id":268189892,"uuid":"903571289","full_name":"hannesrudolph/sqlite-explorer-fastmcp-mcp-server","owner":"hannesrudolph","description":"An MCP server that provides safe, read-only access to SQLite databases through Model Context Protocol (MCP). This server is built with the FastMCP framework, which enables LLMs to explore and query SQLite databases with built-in safety features and query validation.","archived":false,"fork":false,"pushed_at":"2025-05-07T04:32:05.000Z","size":77,"stargazers_count":49,"open_issues_count":3,"forks_count":15,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-07T05:27:09.858Z","etag":null,"topics":["database-tools","llm-integration","llm-tools","mcp","python","sqlite"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hannesrudolph.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-15T00:08:25.000Z","updated_at":"2025-05-07T04:32:09.000Z","dependencies_parsed_at":"2024-12-15T03:18:09.173Z","dependency_job_id":"f1c85512-78ff-4af1-9b3e-457661431019","html_url":"https://github.com/hannesrudolph/sqlite-explorer-fastmcp-mcp-server","commit_stats":null,"previous_names":["hannesrudolph/sqlite-explorer-fastmcp-mcp-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hannesrudolph/sqlite-explorer-fastmcp-mcp-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hannesrudolph%2Fsqlite-explorer-fastmcp-mcp-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hannesrudolph%2Fsqlite-explorer-fastmcp-mcp-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hannesrudolph%2Fsqlite-explorer-fastmcp-mcp-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hannesrudolph%2Fsqlite-explorer-fastmcp-mcp-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hannesrudolph","download_url":"https://codeload.github.com/hannesrudolph/sqlite-explorer-fastmcp-mcp-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hannesrudolph%2Fsqlite-explorer-fastmcp-mcp-server/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265464611,"owners_count":23770325,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database-tools","llm-integration","llm-tools","mcp","python","sqlite"],"created_at":"2024-12-28T01:16:45.513Z","updated_at":"2025-07-15T22:21:01.947Z","avatar_url":"https://github.com/hannesrudolph.png","language":"Python","funding_links":[],"categories":["Databases","Database \u0026 Messaging MCP Servers","📚 Projects (1974 total)","🤖 AI/ML","MCP 服务器精选列表","پیاده‌سازی‌های سرور","Legend","MCP Servers","Uncategorized","Table of Contents","Server Implementations"],"sub_categories":["SQL Databases","MCP Servers","🗄️ 数据库交互","🗄️ \u003ca name=\"databases\"\u003e\u003c/a\u003eپایگاه‌های داده","🗄️ \u003ca name=\"databases\"\u003e\u003c/a\u003eDatabases","🗄️ Databases","Uncategorized","Databases"],"readme":"[![MseeP.ai Security Assessment Badge](https://mseep.net/pr/hannesrudolph-sqlite-explorer-fastmcp-mcp-server-badge.png)](https://mseep.ai/app/hannesrudolph-sqlite-explorer-fastmcp-mcp-server)\n\n# SQLite Explorer MCP Server\n\nAn MCP server that provides safe, read-only access to SQLite databases through Model Context Protocol (MCP). This server is built with the FastMCP framework, which enables LLMs to explore and query SQLite databases with built-in safety features and query validation.\n\n## 📋 System Requirements\n\n- Python 3.6+\n- SQLite database file (path specified via environment variable)\n\n## 📦 Dependencies\n\nInstall all required dependencies:\n\n```bash\n# Using pip\npip install -r requirements.txt\n```\n\n### Required Packages\n- **fastmcp**: Framework for building Model Context Protocol servers\n\nAll dependencies are specified in `requirements.txt` for easy installation.\n\n## 📑 Table of Contents\n- [System Requirements](#-system-requirements)\n- [Dependencies](#-dependencies)\n- [MCP Tools](#%EF%B8%8F-mcp-tools)\n- [Getting Started](#-getting-started)\n- [Installation Options](#-installation-options)\n  - [Claude Desktop](#option-1-install-for-claude-desktop)\n  - [Cline VSCode Plugin](#option-2-install-for-cline-vscode-plugin)\n- [Safety Features](#-safety-features)\n- [Development Documentation](#-development-documentation)\n- [Environment Variables](#%EF%B8%8F-environment-variables)\n\n## 🛠️ MCP Tools\n\nThe server exposes the following tools to LLMs:\n\n### read_query\nExecute a SELECT query on the database with built-in safety validations. Features:\n- Query validation and sanitization\n- Parameter binding support\n- Row limit enforcement\n- Results formatted as dictionaries\n\n### list_tables \nList all available tables in the database with their names.\n\n### describe_table\nGet detailed schema information for a specific table, including:\n- Column names and types\n- NULL constraints\n- Default values\n- Primary key information\n\n## 🚀 Getting Started\n\nClone the repository:\n\n```bash\ngit clone https://github.com/hannesrudolph/sqlite-explorer-fastmcp-mcp-server.git\ncd sqlite-explorer-fastmcp-mcp-server\n```\n\n## 📦 Installation Options\n\nYou can install this MCP server in either Claude Desktop or the Cline VSCode plugin. Choose the option that best suits your needs.\n\n### Option 1: Install for Claude Desktop\n\nInstall using FastMCP:\n\n```bash\nfastmcp install sqlite_explorer.py --name \"SQLite Explorer\" -e SQLITE_DB_PATH=/path/to/db\n```\n\nReplace `/path/to/db` with the path to your SQLite database file.\n\n### Option 2: Install for Cline VSCode Plugin\n\nTo use this server with the [Cline VSCode plugin](http://cline.bot):\n\n1. In VSCode, click the server icon (☰) in the Cline plugin sidebar\n2. Click the \"Edit MCP Settings\" button (✎)\n3. Add the following configuration to the settings file:\n\n```json\n{\n  \"sqlite-explorer\": {\n    \"command\": \"uv\",\n    \"args\": [\n      \"run\",\n      \"--with\",\n      \"fastmcp\",\n      \"--with\",\n      \"uvicorn\",\n      \"fastmcp\",\n      \"run\",\n      \"/path/to/repo/sqlite_explorer.py\"\n    ],\n    \"env\": {\n      \"SQLITE_DB_PATH\": \"/path/to/your/database.db\"\n    }\n  }\n}\n```\n\nReplace:\n- `/path/to/repo` with the full path to where you cloned this repository (e.g., `/Users/username/Projects/sqlite-explorer-fastmcp-mcp-server`)\n- `/path/to/your/database.db` with the full path to your SQLite database file\n\n## 🔒 Safety Features\n\n- Read-only access to SQLite databases\n- Query validation and sanitization\n- Parameter binding for safe query execution\n- Row limit enforcement\n- Progress output suppression for clean JSON responses\n\n## 📚 Development Documentation\n\nThe repository includes documentation files for development:\n\n- `mcp-documentation.txt`: Contains comprehensive documentation about the MCP server implementation and FastMCP framework usage.\n\nThis documentation serves as context when developing features and can be used with LLMs to assist in development.\n\n## ⚙️ Environment Variables\n\nThe following environment variables must be set:\n\n- `SQLITE_DB_PATH`: Full path to the SQLite database file you want to explore\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhannesrudolph%2Fsqlite-explorer-fastmcp-mcp-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhannesrudolph%2Fsqlite-explorer-fastmcp-mcp-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhannesrudolph%2Fsqlite-explorer-fastmcp-mcp-server/lists"}