MCP Server for Enterprise DB Tools
Provides tools for querying a local SQLite HR database, including retrieving employee leave balances and listing pending approvals by department and leave type.
Click on "Install 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., "@MCP Server for Enterprise DB ToolsShow pending approvals in Engineering, limit 5."
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.
MCP Server for Enterprise DB Tools
A local Model Context Protocol server that lets Claude Desktop securely query a SQLite HR database without embedding raw database records in prompts.
Features
Exposes two MCP tools:
get_leave_balance(employee_id)list_pending_approvals(department, leave_type, limit)
Uses a local SQLite HR database with 100+ mock records
Read-only database access
Input validation
Parameterized SQL queries
Structured JSON tool responses
Reproducible local setup
Related MCP server: SQLite MCP Server
Tech Stack
Python
MCP Python SDK
SQLite
Claude Desktop
Project Structure
enterprise-db-tools/
├── scripts/
│ └── init_db.py
├── .gitignore
├── claude_desktop_config.example.json
├── README.md
├── requirements.txt
└── server.pyWindows Setup
Create and activate a virtual environment:
python -m venv .venv
.\.venv\Scripts\activateInstall dependencies:
pip install "mcp[cli]"Generate the SQLite database:
python scripts\init_db.pyTest the tools locally:
python -c "from server import get_leave_balance, list_pending_approvals; print(get_leave_balance('EMP0001')); print(list_pending_approvals(limit=2))"Run the MCP server:
python server.pyThe server uses stdio transport and is meant to be launched by Claude Desktop.
Claude Desktop Configuration
Copy claude_desktop_config.example.json into your Claude Desktop config file.
On Windows, the config file is usually located at:
%APPDATA%\Claude\claude_desktop_config.jsonExample config:
{
"mcpServers": {
"enterprise-db-tools": {
"command": "C:/Users/YOUR_USERNAME/projects/enterprise-db-tools/.venv/Scripts/python.exe",
"args": [
"C:/Users/YOUR_USERNAME/projects/enterprise-db-tools/server.py"
],
"env": {
"HR_DB_PATH": "C:/Users/YOUR_USERNAME/projects/enterprise-db-tools/hr.db"
}
}
}
}Replace YOUR_USERNAME with your Windows username.
Restart Claude Desktop after saving the config.
Example Prompts
Use get_leave_balance for employee EMP0001.
List pending approvals in Engineering, limit 5.
Show pending sick leave approvals, limit 10.Security Controls
SQLite is opened in read-only mode
Only SELECT queries are allowed
User input is validated
SQL queries are parameterized
Raw SQL is not accepted from the agent
Result size is limited using a validated
limitparameter
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
- Flicense-qualityDmaintenanceProvides Claude Desktop with secure access to multiple database connections, allowing users to query MySQL, PostgreSQL, SQLite, and SQL Server databases directly through natural language.Last updated
- Alicense-qualityDmaintenanceEnables natural language interaction with local SQLite databases through Claude Desktop, translating plain English queries into SQL for data analysis and exploration.Last updated3MIT
- FlicenseBqualityCmaintenanceEnables managing employee leave requests (apply, view, list leaves) through Claude desktop using natural language.Last updated6
- Flicense-qualityDmaintenanceEnables managing employee leave requests, balances, and approvals through natural language with Claude Desktop, using SQLite for persistence and fuzzy name matching.Last updated
Related MCP Connectors
Query PostgreSQL databases in plain English — LLM-generated, safety-validated SQL.
Connect Claude to Fathom meeting recordings, transcripts, and summaries
Connect your team's living knowledge base — docs, data, issues, CRM — to Claude and ChatGPT.
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/swetanjana/mcp_enterprise_db_tools'
If you have feedback or need assistance with the MCP directory API, please join our Discord server