sqlite-mcp-server
Provides tools for managing employee data in a SQLite database, including adding, searching, updating, and removing employees, as well as salary calculations, department listings, and company statistics.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@sqlite-mcp-serverCalculate the average salary of all employees."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Employee Database MCP Server
An MCP (Model Context Protocol) server built with FastMCP and SQLite that enables AI clients (such as Claude Desktop and Cursor) to query, analyze, and update structured employee records using natural language.
ποΈ Architecture
flowchart LR
A[Claude Desktop / LLM Client] -->|MCP Protocol via stdio| B[server.py / FastMCP]
B -->|Prepared Queries| C[database.py]
C -->|SQL Operations| D[(SQLite DB)]Related MCP server: SQLite MCP Server
β¨ Features & Exposed MCP Tools
The server exposes parameterized, injection-safe database functions directly to LLM clients:
Category | MCP Tool Name | Description |
Lookup & Search |
| Fetch individual records or query by name/pattern. |
Data Operations |
| Perform CRUD mutations with input validation. |
Analytics & Metrics |
| Aggregate salaries and generate company-wide statistics. |
Department Info |
| Group and summarize workforce distribution. |
π οΈ Tech Stack
Language: Python 3.10+
Database: SQLite
Protocol: Model Context Protocol (MCP / FastMCP)
Testing: pytest (11 unit tests covering database transactions and queries)
π Quickstart & Setup
1. Installation
Clone the repository and install dependencies:
git clone [https://github.com/JacobW2000/sqlite-mcp-server.git](https://github.com/JacobW2000/sqlite-mcp-server.git)
cd sqlite-mcp-server
python -m venv venv
# On Windows:
.\venv\Scripts\activate
# On macOS/Linux:
# source venv/bin/activate
pip install -r requirements.txt2. Integration with Claude Desktop
Add the server configuration to your claude_desktop_config.json:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"employee-database": {
"command": "python",
"args": [
"C:/path/to/sqlite-mcp-server/server.py"
]
}
}
}π§ͺ Testing
This project includes 11 automated pytest tests covering database operations, transaction safety, and employee queries:
python -m pytest tests/test_database.pyThis server cannot be deployed
Maintenance
Related MCP Connectors
Explore, query, and inspect SQLite databases with ease. List tables, preview results, and view detβ¦
Query 40 databases from Claude, ChatGPT, or Cursor β on any device. Read-only, encrypted, audited.
- OleanderOAuthdev.oleander
The all-in-one data stack for agents. Upload files, run SQL, evolve tables, and render charts.
Your Supabase account in natural language: run SQL, apply migrations, manage tables, storage, edge f
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceProvides 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.676 npmMIT
- AlicenseNot gradedqualityDmaintenanceEnables natural language interaction with local SQLite databases through Claude Desktop, translating plain English queries into SQL for data analysis and exploration.3MIT
- AlicenseNot gradedqualityCmaintenanceEnables Claude to query and manage databases (SQLite, SQL Server, PostgreSQL, MySQL) through natural language, supporting read/write operations and schema management.676 npmMIT
- FlicenseNot gradedqualityCmaintenanceEnables Claude Desktop to securely query a SQLite HR database, providing tools to check leave balances and list pending approvals through natural language.-