API Health Check MCP Server
Monitors API endpoint health by checking availability, measuring response times, and providing detailed status reports with error handling and timeout protection for the localhost:8080/api/ticket endpoint.
README
API Health Check MCP Server
This Model Context Protocol (MCP) server provides tools to check the health status of API endpoints. Specifically designed to monitor the GET localhost:8080/api/ticket endpoint.
Features
- Health Check Tool: Checks if the API endpoint is up or down
- Response Time Monitoring: Measures and reports API response times
- Error Handling: Provides detailed error information when the API is unreachable
- Timeout Protection: Automatically times out requests after 10 seconds
- Formatted Output: Returns easy-to-read status reports with icons and timestamps
Installation
- Clone this repository
- Install dependencies:
npm install - Build the project:
npm run build
Usage
With Claude Desktop
Add this server to your Claude Desktop configuration:
{
"mcpServers": {
"api-health-check": {
"command": "node",
"args": ["C:/Project Workspace/MCP/build/index.js"]
}
}
}
Development
npm run build- Build the TypeScript sourcenpm run watch- Watch for changes and rebuild automaticallynpm start- Run the compiled server
Tools Available
check_api_health
Checks the health of the GET localhost:8080/api/ticket endpoint.
Parameters: None
Returns:
- API status (up/down)
- Response time in milliseconds
- HTTP status code (if successful)
- Error details (if failed)
- Timestamp of the check
Example Output:
ā
API Status: UP
š Checked at: 2024-01-15T10:30:45.123Z
ā±ļø Response time: 150ms
š HTTP Status: 200
Error Handling
The server handles various error conditions:
- Connection Refused: When the target server is not running
- Timeout: When requests take longer than 10 seconds
- Host Not Found: When localhost cannot be resolved
- HTTP Errors: When the server returns non-200 status codes
Development
This server is built using:
- Model Context Protocol SDK
- TypeScript
- Node.js Fetch API
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
E2B
Using MCP to run code via e2b.