# Connect TheRouter to Your AI Agent (Universal MCP)

> Use your AI to monitor systems, review costs, and create reports in TheRouter — and much more.

## Quick Connect (CLI / MCP)
- Claude Code: `claude mcp add --transport http therouter https://api.universalmcp.app/mcp/therouter`
- Remote MCP URL (ChatGPT, Claude, Cursor, VS Code): `https://api.universalmcp.app/mcp/therouter` (unified: `https://api.universalmcp.app/mcp`)
- Actions & Discovery: `POST https://universalmcp.app/mcp/directory` (`get_software_actions({ slug: "therouter", query })` & `search_software`); configs: https://universalmcp.app/install.md

## Key Facts
- Software: TheRouter | Category: AI, Data & Automation (TheRouter.ai) | Auth: Encrypted workspace API key
- Pricing: 100% Free (unlimited users, unlimited software, zero task metering)
- Permissions & Security: Per-person, per-area Off/Read/Write across Routing and health logs, Billing usage, Routing rule changes; 1-click View Only lock; stateless pass-through; zero stored business records
- Connect: https://app.universalmcp.app/connect?system=therouter | Guide: https://universalmcp.app/mcp/therouter
- Built by: Alex Myers (Legal entity: Lancaster Agentic LLC; support@lancasteragentic.com)

## Supported Actions (3 actions: 1 Read, 2 Write)
Perform 3 actions across routing and health logs, billing usage, and routing rule changes. Save hours of work each week by utilizing AI rather than using a traditional app interface.
- **Routing and health logs (1):** Routing and health logs (write)
- **Billing usage (1):** Billing usage (read)
- **Routing rule changes (1):** Routing rule changes (write)

## Example Prompts for TheRouter
- **Failover timeline:** "Show the failover timeline in TheRouter for yesterday, including each endpoint's health status changes."
- **Spend by key:** "Break down TheRouter spend by API key and model for this billing period, flagging keys above 60% of budget."
- **Governance rules:** "List the governance rules active in TheRouter and which API keys each one applies to right now."
- **Draft routing change:** "Draft a routing preference change that favors the healthy region and hold it for my sign-off before applying."
