Are you the author? Sign in to claim
A credential-less Model Context Protocol (MCP) server for ManageEngine OpManager REST API integration. This server enabl
A credential-less Model Context Protocol (MCP) server for ManageEngine OpManager REST API integration. This server enables AI assistants like Claude to interact with your OpManager infrastructure through natural language.
host and apiKey per request# Clone the repository
git clone https://github.com/sachdev27/opmanager-mcp-server.git
cd opmanager-mcp-server
# Create virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install the package
pip install -e ".[http]"
uvicorn opmanager_mcp.http_server:app --host 0.0.0.0 --port 3000
curl -X POST http://localhost:3000/call \
-H "Content-Type: application/json" \
-d '{
"name": "opmanager_get_allDevices",
"arguments": {
"host": "opmanager.example.com",
"apiKey": "your-api-key-here",
"port": 8061
}
}'
Create a .env file (optional - for server defaults only):
cp .env.example .env
| Variable | Description | Default |
|---|---|---|
MCP_SERVER_LOG_LEVEL | Logging level | INFO |
ALLOWED_HTTP_METHODS | Allowed HTTP methods for tools | GET,POST,PUT,DELETE,PATCH |
LOCAL_OPENAPI_SPEC_PATH | Path to OpenAPI spec | bundled openapi.json |
Note:
OPMANAGER_HOSTandOPMANAGER_API_KEYare NOT configured server-side. Users provide these per-request for security.
Every tool accepts these connection parameters:
| Parameter | Required | Description |
|---|---|---|
host | ✅ Yes | OpManager server hostname |
apiKey | ✅ Yes | API key for authentication |
port | No | Server port (default: 8060) |
use_ssl | No | Force SSL (auto-detected from port) |
verify_ssl | No | Verify SSL certificates (default: true) |
use_ssl: true/false if needed| Endpoint | Method | Description |
|---|---|---|
/health | GET | Health check with tool count |
/tools | GET | List all available tools |
/sse | GET | SSE connection for MCP |
/messages | POST | MCP message handler |
/call | POST | Direct tool invocation |
curl http://localhost:3000/health
# {"status":"healthy","tool_count":60}
curl http://localhost:3000/tools | jq '.tools[].name'
http://localhost:3000/ssehttp://localhost:3000/messagesYou are an IT operations assistant with access to OpManager for network monitoring.
When using OpManager tools, always include:
- host: "opmanager.company.com"
- apiKey: "your-api-key"
- port: 8061 (for HTTPS)
Available operations:
- List all devices: opmanager_get_allDevices
- Get device details: opmanager_get_device (requires deviceName)
- List alarms: opmanager_get_alarms
- Acknowledge alarm: opmanager_add_alarmNotes
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"opmanager": {
"command": "python",
"args": ["-m", "opmanager_mcp.main"],
"cwd": "/path/to/opmanager-mcp-server",
"env": {
"LOCAL_OPENAPI_SPEC_PATH": "/path/to/opmanager-mcp-server/openapi.json"
}
}
}
}
Note: With Claude Desktop, you'll tell Claude your OpManager host and API key in conversation, and it will include them in tool calls.
opmanager_get_allDevices - List all monitored devicesopmanager_get_device - Get device details by nameopmanager_get_deviceAvailability - Device availability historyopmanager_get_alarms - List alarms with filteringopmanager_get_alarmDetails - Get alarm detailsopmanager_add_alarmNotes - Add notes/acknowledge alarmopmanager_get_discoveryStatus - Check discovery progressopmanager_add_discovery - Start network discoveryopmanager_get_allDashboards - List all dashboardsopmanager_get_scheduledReports - List scheduled reportsRun curl http://localhost:3000/tools to see all available tools.
docker build -t opmanager-mcp-server .
docker run -d -p 3000:3000 --name opmanager-mcp opmanager-mcp-server
docker-compose up -d
# Install dev dependencies
pip install -e ".[dev]"
# Run all tests
pytest
# Run with coverage
pytest --cov=opmanager_mcp --cov-report=term-missing
# Current: 32 tests, 50% coverage
# Format
black opmanager_mcp tests
isort opmanager_mcp tests
# Lint
ruff check opmanager_mcp tests
# Type check
mypy opmanager_mcp
python generate_openapi.py
opmanager-mcp-server/
├── opmanager_mcp/
│ ├── __init__.py # Package exports
│ ├── api_client.py # HTTP client for OpManager API
│ ├── config.py # Configuration management
│ ├── exceptions.py # Custom exceptions
│ ├── http_server.py # HTTP/SSE server (Pure ASGI)
│ ├── logging_config.py # Logging configuration
│ ├── main.py # CLI entry point
│ ├── server.py # MCP server implementation
│ └── tool_generator.py # OpenAPI to MCP tool converter
├── tests/
│ ├── conftest.py # Test fixtures
│ ├── test_api_client.py # API client tests
│ ├── test_config.py # Config tests
│ ├── test_http_server.py # HTTP server tests
│ ├── test_server.py # MCP server tests
│ └── test_tool_generator.py # Tool generation tests
├── openapi.json # OpManager OpenAPI specification
├── pyproject.toml # Project configuration
├── Dockerfile # Container image
├── docker-compose.yml # Compose configuration
└── README.md # This file
MIT License - see LICENSE for details.
Run Claude Code as an MCP server so any agent can delegate coding tasks to it
Browser automation using accessibility snapshots instead of screenshots
Google's universal MCP server supporting PostgreSQL, MySQL, MongoDB, Redis, and 10+ databases
Official GitHub integration for repos, issues, PRs, and CI/CD workflows