Skip to main content
Glama

jarvis-mcp

⚠️ Potentially deprecated — do not extend. Existing tools still work, but the architecture is under review; raise the question before adding new tools.

MCP (Model Context Protocol) server for jarvis. Exposes jarvis services as tools for Claude Code.

Architecture

Claude Code ◄──MCP (SSE/HTTP)──► jarvis-mcp (7709) ──HTTP──► jarvis services
                                       │
                                       ├──► jarvis-logs (7702)
                                       ├──► jarvis-auth (7701)
                                       ├──► jarvis-recipes (7030)
                                       └──► jarvis-command-center (7703)

Related MCP server: mcp-server-logs-sieve

Quick Start

# Start with docker-compose
docker-compose up -d

# Or alongside jarvis-logs stack
cd ../jarvis-logs && docker-compose up -d
cd ../jarvis-mcp && docker-compose up -d

Option 2: Local Development

# Install
pip install -e .

# Run
python -m jarvis_mcp
# or
jarvis-mcp

Claude Code Configuration

Add to your ~/.claude.json or project .claude/settings.json:

{
  "mcpServers": {
    "jarvis": {
      "type": "sse",
      "url": "http://localhost:7709/sse"
    }
  }
}

Or use the CLI:

claude mcp add --transport sse jarvis http://localhost:7709/sse

For Docker deployment (different host):

{
  "mcpServers": {
    "jarvis": {
      "type": "sse",
      "url": "http://your-server:7709/sse"
    }
  }
}

Available Tool Groups

Group

Tools

Description

logs

logs_query, logs_tail, logs_errors, logs_services

Query and search jarvis logs

debug

debug_health, debug_service_info

Debug and monitor jarvis services

Logs Tools

Tool

Description

logs_query

Query logs with filters (service, level, search, time range)

logs_tail

Get recent logs from a specific service

logs_errors

Find recent errors across all services

logs_services

List all services that have sent logs

Debug Tools

Tool

Description

debug_health

Check health status of jarvis services

debug_service_info

Get detailed info about a specific service

Configuration

Environment Variables

Variable

Default

Description

JARVIS_MCP_HOST

localhost

Host to bind to

JARVIS_MCP_PORT

7709

Port to listen on

JARVIS_MCP_TOOLS

logs,debug

Comma-separated tool groups to enable

JARVIS_LOGS_URL

http://localhost:7702

jarvis-logs server URL

JARVIS_AUTH_URL

http://localhost:7701

jarvis-auth server URL

JARVIS_RECIPES_URL

http://localhost:7030

jarvis-recipes server URL

JARVIS_COMMAND_CENTER_URL

http://localhost:7703

jarvis-command-center URL

Docker Configuration

# Change port
JARVIS_MCP_PORT=9100 docker-compose up -d

# Enable more tool groups
JARVIS_MCP_TOOLS=logs,debug,recipes docker-compose up -d

Usage Examples

Once configured, Claude Code can use these tools directly:

User: "Show me recent errors from llm-proxy"
Claude: [calls logs_errors with service="llm-proxy"]

User: "Are all services healthy?"
Claude: [calls debug_health]

User: "Tail the logs from command-center"
Claude: [calls logs_tail with service="command-center"]

Endpoints

Endpoint

Description

GET /sse

SSE connection endpoint for MCP clients

POST /messages

Message endpoint for MCP protocol

Adding New Tool Groups

  1. Create a new module in jarvis_mcp/tools/:

# jarvis_mcp/tools/recipes.py
from mcp.types import Tool, TextContent

RECIPES_TOOLS = [
    Tool(
        name="recipes_search",
        description="Search for recipes",
        inputSchema={...}
    ),
]

async def handle_recipes_tool(name: str, arguments: dict) -> list[TextContent]:
    ...
  1. Register in jarvis_mcp/tools/__init__.py

  2. Add to server.py:

if config.is_enabled("recipes"):
    tools.extend(RECIPES_TOOLS)
  1. Enable in config:

JARVIS_MCP_TOOLS=logs,debug,recipes

Development

# Install in development mode
pip install -e ".[dev]"

# Run locally
python -m jarvis_mcp

# Build Docker image
docker build -t jarvis-mcp .

# Run with Docker
docker run -p 7709:7709 jarvis-mcp

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      B
      quality
      F
      maintenance
      Enables comprehensive Datadog monitoring capabilities including CI/CD pipeline management, service logs analysis, metrics querying, monitor and SLO management, service definitions retrieval, and team management through Claude and other MCP clients.
      13
      20
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      An MCP server that connects Claude (or any MCP compatible client) to your existing log infrastructure. Query, summarize, and trace logs in plain English across GCP Cloud Logging, AWS CloudWatch, Azure Log Analytics, Grafana Loki, and Elasticsearch without writing filter expressions or leaving your editor.
      5
      MIT
    • F
      license
      B
      quality
      D
      maintenance
      Enables log analysis, searching, counting, and system metrics retrieval (CPU, memory, disk) via natural language, using 5 tools that can be integrated with Claude Code.
      5
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      A read-only MCP server that exposes tools to query Datadog monitors and logs, and AWS CloudWatch Logs, and to group recurring errors by fingerprint. Designed for use with Claude Code to diagnose issues and propose fixes.
      MIT