Skip to main content

FastMCP server exposing ResQ platform capabilities to AI clients

Project description

ResQ MCP: Disaster Response Intelligence for AI

CI PyPI License

A production-ready Model Context Protocol (MCP) server that connects AI agents to the ResQ platform's robotics, physics simulations, and disaster telemetry.


Capabilities

resq-mcp allows AI agents (Claude Desktop, Cursor, etc.) to command and monitor disaster response operations through a secure, typed interface.

  • Drone Fleet Command: Real-time telemetry, sector scanning, and autonomous swarm deployment via the Hybrid Coordination Engine (HCE).
  • Predictive Intelligence: Probabilistic disaster forecasting and sector-level vulnerability mapping (PDIE).
  • Digital Twin Simulations: Physics-based RL optimization strategies for incident response (DTSOP).
  • Safe-Mode Execution: Built-in protection prevents destructive platform mutations in production environments by default.

Quick Start

For End Users (Claude / Cursor)

Run the server instantly without manual cloning using uvx. Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "resq": {
      "command": "uvx",
      "args": ["resq-mcp"],
      "env": { 
        "RESQ_API_KEY": "your-prod-token",
        "RESQ_SAFE_MODE": "true"
      }
    }
  }
}

For Developers

Set up the local environment using uv:

git clone https://github.com/resq-software/mcp.git
cd mcp
uv sync
uv run resq-mcp

Technical Architecture

The server acts as a secure intermediary, translating natural language requests into authenticated, platform-native service calls.

C4Context
    title ResQ MCP Integration
    Person(ai, "AI Client", "Claude / Cursor")
    System_Boundary(resq_boundary, "resq-mcp Server") {
        System(server, "resq-mcp Server", "FastMCP Interface")
        System_Boundary(backend, "ResQ Platform") {
            Component(dtsop, "DTSOP Engine", "Physics/RL Simulations")
            Component(hce, "HCE Engine", "Coordination Logic")
            Component(telemetry, "Drone Telemetry", "Real-time Status")
        }
    }
    Rel(ai, server, "Uses MCP (STDIO/SSE)")
    Rel(server, dtsop, "Executes Simulation")
    Rel(server, hce, "Validates Incidents")
    Rel(server, telemetry, "Subscribes to Data")

Configuration

Control server behavior via environment variables or a .env file:

Variable Description Default
RESQ_API_KEY Platform authentication token resq-dev-token
RESQ_SAFE_MODE Prevents destructive mutations true
RESQ_PORT Port for SSE (networked) mode 8000
RESQ_HOST Host to bind the SSE server 0.0.0.0
RESQ_DEBUG Enable verbose logging false

Security & Safety

Safe Mode is enabled by default (RESQ_SAFE_MODE=true). In this state, any tool that performs platform mutations (e.g., dispatching a drone swarm or starting a high-fidelity simulation) will raise a FastMCPError. This allows AI agents to "hallucinate" or plan missions safely without triggering real-world consequences. Disable this only when you are ready for autonomous execution.


Tool Reference

Mission Control (HCE)

  • validate_incident: Evaluates sensor data against risk protocols.
  • update_mission_params: Pushes mission parameters to specific drones.

Simulation (DTSOP)

  • run_simulation: Queues a high-fidelity physics simulation job.
  • get_optimization_strategy: Retrieves RL-optimized strategies for incidents.

Intelligence (PDIE)

  • get_vulnerability_map: Precomputed vulnerability data for a sector.
  • get_predictive_alerts: Probabilistic disaster forecasts.

Fleet Status

  • resq://drones/active: Resource URI for real-time drone status.
  • resq://simulations/{id}: Resource URI for simulation progress.

Contributing

We use uv for dependency management and ruff for linting.

  1. Setup: ./scripts/setup.sh (installs Nix dev-shell and git hooks).
  2. Test: uv run pytest
  3. Lint: uv run ruff check .

Distributed under the Apache-2.0 License. Copyright 2026 ResQ.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

resq_mcp-1.0.0.tar.gz (252.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

resq_mcp-1.0.0-py3-none-any.whl (55.6 kB view details)

Uploaded Python 3

File details

Details for the file resq_mcp-1.0.0.tar.gz.

File metadata

  • Download URL: resq_mcp-1.0.0.tar.gz
  • Upload date:
  • Size: 252.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for resq_mcp-1.0.0.tar.gz
Algorithm Hash digest
SHA256 60a57baaf351785648521cece3fed3d0fe13d5e8be24fe99b3c4283059d51e3f
MD5 0eaeb3707172c9391536f2b6a6f96872
BLAKE2b-256 ef4e98b6bc85b80b7d2e868b9a833b22382b43a37438488cceeebf5dbacd1edb

See more details on using hashes here.

File details

Details for the file resq_mcp-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: resq_mcp-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 55.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for resq_mcp-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3f92711f35044ce0d70a79d660cdfec9d7d205893c73f46c2e8a3ff04664e307
MD5 41d9327251d7a26f7253c59d1659f214
BLAKE2b-256 708cad8b61fb24dfa0656c20f0bbfb2ae435c3a61ba51af06ca98b3bb7074009

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page