API Health Check MCP Server

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.

Category
Visit Server

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

  1. Clone this repository
  2. Install dependencies:
    npm install
    
  3. 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 source
  • npm run watch - Watch for changes and rebuild automatically
  • npm 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:

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
Kagi MCP Server

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.

Official
Featured
Python
graphlit-mcp-server

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.

Official
Featured
TypeScript
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured