SQLite MCP Server
Enables comprehensive SQLite database operations including CRUD operations, schema management, and meta commands across multiple database files through the Model Context Protocol.
README
SQLite MCP Server
A comprehensive Model Context Protocol (MCP) server implementation that provides full CRUD (Create, Read, Update, Delete) operations for SQLite databases. This server allows clients to interact with multiple SQLite database files through a standardized MCP interface.
Overview
This MCP server provides comprehensive SQLite database operations through the Model Context Protocol. It supports Create, Read, Update, Delete (CRUD) operations on multiple SQLite database files, with each operation accepting a database path parameter for flexible multi-database management.
Features
- Multi-database Support: Connect to different SQLite databases per request
- Full CRUD Operations: Create, Read, Update, Delete operations
- Schema Management: Table creation, schema inspection, and metadata queries
- SQLite Meta Commands: Support for
.tables,.schema,.indexes,.pragmacommands - Type Safety: Full TypeScript implementation with Zod validation
- Property-based Testing: Comprehensive testing with fast-check
- MCP Protocol Compliance: Standard MCP protocol implementation
Installation
npm install
Development
# Build the project
npm run build
# Run in development mode
npm run dev
# Run tests
npm test
# Run tests with coverage
npm run test:coverage
# Lint code
npm run lint
Project Structure
src/
├── types/ # Type definitions and schemas
├── tools/ # MCP tool implementations
├── database/ # Database management
├── server/ # MCP server implementation
└── index.ts # Entry point
Usage
MCP Client Configuration
To use this server with an MCP client, add the following configuration:
{
"mcpServers": {
"sqlite-mcp": {
"command": "npx",
"args": ["-y", "git+https://github.com/YUChoe/sqlite-mcp"],
"disabled": false,
"autoApprove": []
}
}
}
Available Tools
The server exposes the following MCP tools:
Create Operations
create-table: Create new tables with specified schemainsert-data: Insert data into existing tables
Read Operations
select-data: Execute SELECT queries with optional parametersget-schema: Retrieve table schema information
Update Operations
update-data: Execute UPDATE queries with conditions
Delete Operations
delete-data: Execute DELETE queries with conditions
Meta Operations
meta-command: Execute SQLite meta commands (.tables, .schema, etc.)
Requirements
This implementation satisfies the following requirements:
- Multi-database connection management (Requirements 1.1-1.4)
- Complete CRUD operations (Requirements 2.1-5.4)
- Schema and metadata access (Requirements 6.1-7.5)
- MCP protocol compliance (Requirements 8.1-8.4)
- Multilingual documentation (Requirements 9.1-9.4)
License
MIT
SQLite MCP 서버
TypeScript로 구현된 SQLite CRUD 작업을 위한 MCP(Model Context Protocol) 서버입니다.
개요
이 MCP 서버는 Model Context Protocol을 통해 포괄적인 SQLite 데이터베이스 작업을 제공합니다. 여러 SQLite 데이터베이스 파일에 대한 생성, 읽기, 업데이트, 삭제(CRUD) 작업을 지원하며, 각 작업마다 데이터베이스 경로 매개변수를 받아 유연한 다중 데이터베이스 관리가 가능합니다.
기능
- 다중 데이터베이스 지원: 요청별로 다른 SQLite 데이터베이스에 연결
- 완전한 CRUD 작업: 생성, 읽기, 업데이트, 삭제 작업
- 스키마 관리: 테이블 생성, 스키마 검사, 메타데이터 쿼리
- SQLite 메타 명령:
.tables,.schema,.indexes,.pragma명령 지원 - 타입 안전성: Zod 검증을 포함한 완전한 TypeScript 구현
- 속성 기반 테스트: fast-check를 사용한 포괄적인 테스트
- MCP 프로토콜 준수: 표준 MCP 프로토콜 구현
설치
npm install
개발
# 프로젝트 빌드
npm run build
# 개발 모드 실행
npm run dev
# 테스트 실행
npm test
# 커버리지와 함께 테스트 실행
npm run test:coverage
# 코드 린트
npm run lint
프로젝트 구조
src/
├── types/ # 타입 정의 및 스키마
├── tools/ # MCP 도구 구현
├── database/ # 데이터베이스 관리
├── server/ # MCP 서버 구현
└── index.ts # 진입점
사용법
MCP 클라이언트 설정
MCP 클라이언트에서 이 서버를 사용하려면 다음 설정을 추가하세요:
{
"mcpServers": {
"sqlite-mcp": {
"command": "npx",
"args": ["-y", "git+https://github.com/YUChoe/sqlite-mcp"],
"disabled": false,
"autoApprove": []
}
}
}
사용 가능한 도구
서버는 다음 MCP 도구들을 제공합니다:
생성 작업
create-table: 지정된 스키마로 새 테이블 생성insert-data: 기존 테이블에 데이터 삽입
읽기 작업
select-data: 선택적 매개변수와 함께 SELECT 쿼리 실행get-schema: 테이블 스키마 정보 조회
업데이트 작업
update-data: 조건과 함께 UPDATE 쿼리 실행
삭제 작업
delete-data: 조건과 함께 DELETE 쿼리 실행
메타 작업
meta-command: SQLite 메타 명령 실행 (.tables, .schema 등)
요구사항
이 구현은 다음 요구사항을 만족합니다:
- 다중 데이터베이스 연결 관리 (요구사항 1.1-1.4)
- 완전한 CRUD 작업 (요구사항 2.1-5.4)
- 스키마 및 메타데이터 접근 (요구사항 6.1-7.5)
- MCP 프로토콜 준수 (요구사항 8.1-8.4)
- 다국어 문서화 (요구사항 9.1-9.4)
라이선스
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。