Skip to main content
Glama
maheshkhatal27

employee-mcp-server

employee-mcp-server

A Node.js MCP (Model Context Protocol) server that connects Claude to a MySQL employees database, exposing tools to list, search, add, and analyze employee records.

Features list_employees — returns all employees search_employee — find employees by name (partial match) employees_by_department — filter employees by department add_employee — insert a new employee (name, department, salary) highest_salary — returns the highest-paid employee Tech Stack Node.js (ES modules) @modelcontextprotocol/sdk — MCP server implementation mysql2 — MySQL driver zod — input schema validation dotenv — local environment variable loading Project Structure employee-mcp/ ├── index.js # MCP server: defines and registers the 5 tools ├── db.js # MySQL connection pool ├── manifest.json # Desktop Extension (.mcpb) manifest ├── package.json # Dependencies ├── .env # Local DB credentials (not committed) └── .gitignore Setup Install dependencies: bash npm install Create a .env file in the project root: DB_HOST=localhost DB_USER=root DB_PASSWORD=your_password DB_NAME=company Run the server directly (for testing): bash node index.js Using with Claude Desktop

This project is packaged as a Desktop Extension (.mcpb) for one-click install:

bash npm install -g @anthropic-ai/mcpb npm install --production mcpb validate manifest.json mcpb pack .

Then in Claude Desktop: Settings → Extensions → Advanced settings → Extension Developer → Install Extension…, select the generated .mcpb file, and enter your MySQL credentials in the setup screen.

Example Prompts Prompt Tool Called "List all employees" list_employees "Search for an employee named Mahesh" search_employee "Show employees in the Engineering department" employees_by_department "Add a new employee named Mahesh Khatal in Engineering with salary 120000" add_employee "Who has the highest salary?" highest_salary Notes .env and node_modules/ are excluded via .gitignore and never committed. Full build walkthrough and debugging notes available in the accompanying project documentation.

Install Server
F
license - not found
B
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • A
    license
    B
    quality
    D
    maintenance
    MCP server that allows Claude AI to interact directly with MySQL databases, enabling query execution and table information retrieval through natural language.
    Last updated
    1
    10
    4
    MIT
  • A
    license
    -
    quality
    A
    maintenance
    MySQL MCP Server enables Claude Desktop and Claude Code to execute SQL queries, explore databases, Webview to add or enable Databases, Connections, and interact with your MySQL data - all through a secure, permission-controlled interface.
    Last updated
    32
    1
    MIT

View all related MCP servers

Related MCP Connectors

  • MCP server giving Claude AI access to 22+ NYC public-record databases for real estate due diligence

  • Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer

  • GibsonAI MCP server: manage your databases with natural language

View all MCP Connectors

Latest Blog Posts

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/maheshkhatal27/employee-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server