sqlite-mcp-server
Employee Database MCP Server
一个小型 Python 项目,让 Claude Desktop 通过模型上下文协议(MCP)与 SQLite 员工数据库交互。
我构建这个项目是为了学习 AI 助手如何利用外部工具来检索和修改结构化数据。
功能
该服务器为 Claude 提供了一套用于处理员工数据的工具。例如,Claude 可以:
添加员工
按 ID 查找员工
按姓名搜索员工
列出所有员工
更新员工薪资
删除员工
查找薪资最高的员工
计算平均薪资
列出公司部门
按部门统计员工人数
获取公司整体统计信息
由于这些工具通过 MCP 暴露,我可以用自然语言向 Claude 提问,而无需自己编写 SQL 查询。
Related MCP server: MCP Database Server
工作原理
该项目分为三个主要部分:
Claude Desktop
|
| MCP
v
server.py
|
v
database.py
|
v
SQLiteTool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Query, explore, and manage your databases through natural conversation.
Read and write NetSuite and run SuiteQL from Claude or ChatGPT. Write tools flagged for approval.
Explore, query, and inspect SQLite databases with ease. List tables, preview results, and view det…
Work with your database from AI tools: ask, export, approved changes, and scheduled jobs.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides database access capabilities to Claude with support for both SQLite and SQL Server databases. It enables users to manage schemas, execute SQL queries, and export results through natural language interaction.MIT
- AlicenseNot gradedqualityDmaintenanceEnables Claude to query and manage databases (SQLite, SQL Server, PostgreSQL, MySQL) through natural language, supporting read/write operations and schema management.MIT
- FlicenseNot gradedqualityDmaintenanceEnables Claude Desktop to securely query a SQLite HR database, providing tools to check leave balances and list pending approvals through natural language.-
- AlicenseNot gradedqualityDmaintenanceEnables Claude to safely explore and query a SQLite database through natural language, including listing tables, inspecting schemas, and running read-only SELECT queries.MIT