MCP Employee API Server
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 Employee API Serverget 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.
MCP Employee API Server
A Model Context Protocol (MCP) server that provides tools for managing employee data through a REST API. This server exposes employee management operations as MCP tools that can be used by AI assistants and other MCP clients.
Features
Employee Management: Full CRUD operations for employee data
REST API Integration: Connects to a local employee API server
MCP Protocol: Exposes functionality through the Model Context Protocol
Async Operations: Built with async/await for optimal performance
Error Handling: Robust error handling for API requests
Related MCP server: CRM Employee Management MCP Server
Available Tools
The server provides the following MCP tools:
get_employees()- Retrieve all employeesget_employee(id)- Get a specific employee by IDadd_employee(name, age)- Create a new employeeupdate_employee(id, name, age)- Update an existing employeedelete_employee(id)- Delete an employee by ID
Prerequisites
Python 3.13 or higher
A running employee API server at
http://localhost:8000
Installation
Clone the repository:
git clone https://github.com/JoseGarayar/mcp_test.git cd mcp_testClone the api employee repository:
git clone https://github.com/JoseGarayar/api_employees.gitInstall dependencies using uv:
uv sync
Usage
Running the MCP Server
Start the MCP server using stdio transport:
uv run python main.pyThe server will run and listen for MCP protocol messages via stdin/stdout.
API Configuration
The server is configured to connect to a local API server at http://localhost:8000. You can modify the URL_BASE constant in main.py to point to a different API endpoint.
Example API Endpoints
The server expects the following API endpoints to be available:
GET /employees- List all employeesGET /employees/{id}- Get employee by IDPOST /employees- Create new employeePUT /employees/{id}- Update employeeDELETE /employees/{id}- Delete employee
Development
Project Structure
mcp_test/
├── main.py # Main MCP server implementation
├── pyproject.toml # Project configuration and dependencies
├── README.md # This file
└── uv.lock # Lock file for dependenciesDependencies
httpx- Async HTTP client for API requestsmcp[cli]- Model Context Protocol implementation
Development Dependencies
ruff- Python linter and formatter
Error Handling
The server includes comprehensive error handling:
Network timeouts (30 seconds)
HTTP error status codes
Invalid HTTP methods
Connection failures
All errors are gracefully handled and return None for failed operations.
License
This project is part of a test implementation for MCP server development.
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
- -license-quality-maintenanceEnables AI assistants to interact with Odoo ERP systems through XML-RPC integration. Provides access to Odoo models, records, employee search, holiday management, and custom method execution via the Model Context Protocol.Last updated
- Alicense-qualityDmaintenanceEnables LLMs to interact with a CRM system through natural language to manage employees, including creating, updating, searching, and viewing employee records and statistics.Last updatedMIT
- Flicense-qualityDmaintenanceProvides tools for managing human resources tasks such as applying for leave, checking leave balances, and viewing holiday schedules. It enables natural language interaction for employee information and leave history tracking via the Model Context Protocol.Last updated
- Alicense-qualityDmaintenanceEnables managing employee records by providing tools to list directories, retrieve detailed profiles, and search for staff by department. It integrates with Claude Desktop to allow users to interact with employee data through natural language commands.Last updatedMIT
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Gateway between LLM agents and world data through eight tools and a bundled endpoint catalog.
A Model Context Protocol server for Wix AI tools
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/JoseGarayar/mcp_test'
If you have feedback or need assistance with the MCP directory API, please join our Discord server