🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

uptime-agent-mcp

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uptime-agent-mcp

MCP Server for uptime-agent.io

0.0.9
latest
npm
Version published
Weekly downloads
47
-89.27%
Maintainers
1
Weekly downloads
 
Created
Source

🚀 Uptime Agent MCP Server

GitHub license Node.js Version Model Context Protocol smithery badge Install with VS Code

Connect your Uptime Agent monitoring system directly to AI assistants like Claude through the Model Context Protocol (MCP).

✨ Features

  • Real-time Monitoring Access: Allow AI assistants to check your system's uptime status
  • Incident Management: View and analyze downtime incidents through natural conversation
  • Monitor Creation: Set up new monitoring endpoints with simple voice or text commands
  • Secure Integration: Enterprise-grade security for your monitoring infrastructure

🔍 What is Uptime Agent?

Uptime Agent is a powerful monitoring solution that tracks your websites and API endpoints, alerting you when they go down. This MCP server extends Uptime Agent's capabilities by letting you interact with your monitoring system through AI assistants.

🛠️ Quick Start

Prerequisites

  • Node.js 18 or higher
  • An active Uptime Agent account
  • Your Uptime Agent API key

Installation

# Clone the repository
git clone https://github.com/yourusername/uptime-agent-mcp.git
cd uptime-agent-mcp

# Install dependencies
npm install

# Build the project
npm run build

API Key Setup

To obtain your Uptime Agent API key:

  • Log in to your Uptime Agent Dashboard
  • Navigate to Account → API Keys
  • Create a new API key with appropriate permissions
  • Copy the generated key for use with the MCP server

Configuration

Create a .env file in the root directory with your credentials:

UPTIME_API_KEY=your-api-key-here
PORT=3000  # Optional, defaults to 3000

Or set environment variables directly:

export UPTIME_API_KEY="your-api-key"
export PORT=3000  # Optional

Start the Server

npm start
# or directly with
node dist/index.js

🤖 AI Assistant Integration

Setting Up with Claude Desktop

To connect this MCP server to Claude Desktop:

  • Add the following to your claude_desktop_config.json:
{
  "mcpServers": {
    "uptime-agent": {
      "command": "npx",
      "args": [
        "-y",
        "uptime-agent-mcp"
      ],
      "env": {
        "UPTIME_API_KEY": "<YOUR_API_KEY>"
      }
    }
  }
}

Alternatively, you can use Docker:

{
  "mcpServers": {
    "uptime-agent": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "UPTIME_API_KEY",
        "uptime-agent-mcp"
      ],
      "env": {
        "UPTIME_API_KEY": "<YOUR_API_KEY>"
      }
    }
  }
}

Setting Up with VS Code

For quick installation in VS Code:

  • Click the "Install with VS Code" badge at the top of this README
  • Enter your Uptime Agent API key when prompted
  • The MCP server will be configured automatically

For manual installation, add this to your VS Code User Settings (JSON):

{
  "mcp": {
    "inputs": [
      {
        "type": "promptString",
        "id": "uptime_api_key",
        "description": "Uptime Agent API Key",
        "password": true
      }
    ],
    "servers": {
      "uptime-agent": {
        "command": "npx",
        "args": [
          "-y",
          "uptime-agent-mcp"
        ],
        "env": {
          "UPTIME_API_KEY": "${input:uptime_api_key}"
        }
      }
    }
  }
}

Alternatively, you can create .vscode/mcp.json in your workspace with the same configuration (omit the outer "mcp" key).

Example Conversations

Checking Monitors:

"Claude, show me all my active uptime monitors."

Creating a New Monitor:

"Please create a new monitor for our API endpoint at https://api.mycompany.com/v2/health"

Analyzing Incidents:

"What incidents happened on our production servers last week, and what was the average downtime?"

📊 Available Functions

Monitor Operations

FunctionDescriptionParameters
listMonitorsGet a complete list of all monitoring endpointsNone required
getMonitorRetrieve detailed information about a specific monitorid: Monitor identifier
createMonitorSet up a new endpoint to monitorname: Monitor name
url: URL to monitor
tracking_type: Type of monitoring (http, ping, etc.)
check_frequency: Check interval in seconds

Incident Management

FunctionDescriptionParameters
listIncidentsView all detected downtime incidentsNone required
getIncidentGet detailed information about a specific incidentid: Incident identifier
listIncidentsByMonitorSee all incidents for a particular endpointmonitor_id: Monitor identifier

Public Tracking

FunctionDescriptionParameters
createAnonymousTrackingCreate public tracking without authenticationurl: URL to monitor
name: (Optional) Name for the tracking

Integration with Slack (Coming Soon)

FunctionDescriptionParameters
slack_get_usersList all users in connected Slack workspacelimit: Max number of users
cursor: Pagination cursor
slack_post_messagePost notifications to Slackchannel_id: Channel to post to
text: Message content

🐳 Docker Deployment

We provide Docker support for easy deployment:

# Build the Docker image
docker build -t uptime-agent-mcp .

# Run the container
docker run -p 3000:3000 -e UPTIME_API_KEY=your-api-key uptime-agent-mcp

CI/CD Integration

For GitHub Actions integration:

name: Deploy Uptime Agent MCP

on:
  push:
    branches: [ main ]

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: Build and push Docker image
        uses: docker/build-push-action@v4
        with:
          context: .
          push: true
          tags: yourregistry/uptime-agent-mcp:latest
      - name: Deploy to server
        run: |
          # Add your deployment commands here
          echo "Deploying to production server"

🤝 Contributing

We welcome contributions! Please feel free to submit a Pull Request.

  • Fork the repository
  • Create your feature branch (git checkout -b feature/amazing-feature)
  • Commit your changes (git commit -m 'Add some amazing feature')
  • Push to the branch (git push origin feature/amazing-feature)
  • Open a Pull Request

Development Setup

For local development and testing:

# Install dev dependencies
npm install --include=dev

# Run tests
npm test

# Run in development mode with hot reloading
npm run dev

📬 Support

If you have questions or need assistance:

📜 License

This project is licensed under the MIT License - see the LICENSE file for details.

Developed with ❤️ by AVIMBU

Keywords

mcp

FAQs

Package last updated on 26 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts