Rival Regulatory Toolkit

Official registry Other

Read-only regulatory source retrieval, citation tracing, authority metadata, and recent filings.

Install

Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).

NPM package @tryrival/regulatory-toolkit
Claude Code
claude mcp add rival-regulatory-toolkit -e 'RIVAL_API_KEY=<your rival_api_key>' -e 'RIVAL_API_BASE_URL=<RIVAL_API_BASE_URL>' -e 'RIVAL_FIXTURE_MODE=<RIVAL_FIXTURE_MODE>' -- npx -y @tryrival/regulatory-toolkit@0.1.5
JSON configuration (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "rival-regulatory-toolkit": {
            "command": "npx",
            "args": [
                "-y",
                "@tryrival/regulatory-toolkit@0.1.5"
            ],
            "env": {
                "RIVAL_API_KEY": "<your rival_api_key>",
                "RIVAL_API_BASE_URL": "<RIVAL_API_BASE_URL>",
                "RIVAL_FIXTURE_MODE": "<RIVAL_FIXTURE_MODE>"
            }
        }
    }
}

Environment variables

  • RIVAL_API_KEY required secret Managed Rival API key. Required for production API access.
  • RIVAL_API_BASE_URL Rival API base URL. Defaults to https://api.tryrival.ai.
  • RIVAL_FIXTURE_MODE Set to true to run against the bundled sample corpus without API access.

Documentation

From the project's README on GitHub, refreshed weekly. Links open on GitHub.

Contents
  1. Rival Regulatory Toolkit
  2. What Is Included
  3. Install
  4. Environment
  5. TypeScript Client
  6. CLI
  7. MCP Server
  8. Docker
  9. API Contract
  10. Safety Boundary
  11. Development
  12. License

Rival Regulatory Toolkit

Open-source SDK, CLI, MCP server, and schemas for connecting AI agents to Rival's source-grounded regulatory retrieval API.

This repository is the developer and agent connectivity layer for Rival. It is intentionally read-only in its first release: agents can search, retrieve source text, trace citations, list authorities, and inspect recent filings. Workspace actions, document review, evidence requests, filings, and task creation remain behind managed Rival access and human review gates.

What Is Included

  • OpenAPI contract for Rival's read-only regulatory retrieval API.
  • JSON Schemas for source documents, search results, citations, authorities, and recent filings.
  • TypeScript client for server-side applications and internal tools.
  • CLI for shell usage and automation.
  • MCP server for agent clients that support Model Context Protocol.
  • Fixture mode so teams can evaluate the integration without a Rival API key.
  • Dockerfile for running the MCP server in controlled team environments.

Install

npm install @rival-intelligence/regulatory-toolkit

For local development from source:

npm install
npm run build

Environment

export RIVAL_API_KEY="rv_live_..."
export RIVAL_API_BASE_URL="https://api.tryrival.ai"

For local evaluation without API access:

export RIVAL_FIXTURE_MODE=true

TypeScript Client

import { RivalRegulatoryClient } from '@rival-intelligence/regulatory-toolkit';

const rival = new RivalRegulatoryClient({
  apiKey: process.env.RIVAL_API_KEY,
});

const results = await rival.searchRegulatoryCorpus({
  query: '49 CFR 195.573',
  limit: 5,
});

console.log(results.results[0]?.source.citation);

CLI

rival-regulatory search "49 CFR 195.573"
rival-regulatory source "cfr-49-195-573"
rival-regulatory trace "49 CFR 195.573"
rival-regulatory authorities

Fixture mode:

rival-regulatory search "pipeline corrosion" --fixture

MCP Server

Run directly:

npx @rival-intelligence/regulatory-toolkit mcp

MCP client example:

{
  "mcpServers": {
    "rival-regulatory": {
      "command": "npx",
  "args": ["-y", "@rival-intelligence/regulatory-toolkit", "mcp"],
      "env": {
        "RIVAL_API_KEY": "rv_live_...",
        "RIVAL_API_BASE_URL": "https://api.tryrival.ai"
      }
    }
  }
}

Available MCP tools:

  • search_regulatory_corpus
  • retrieve_source_text
  • trace_citation
  • list_authorities
  • get_recent_filings

Docker

Docker belongs in this repository because many compliance, legal, consulting, energy, and infrastructure teams will run agent tools inside controlled environments. The image runs the MCP server and reads credentials from environment variables.

docker build -t rival-regulatory-toolkit .
docker run --rm -i \
  -e RIVAL_API_KEY="$RIVAL_API_KEY" \
  -e RIVAL_API_BASE_URL="https://api.tryrival.ai" \
  rival-regulatory-toolkit

Fixture mode:

docker run --rm -i -e RIVAL_FIXTURE_MODE=true rival-regulatory-toolkit

See docs/self-hosting.md for deployment notes.

API Contract

The API contract starts with five read-only endpoints:

  • GET /api/v1/search
  • GET /api/v1/sources/{source_id}
  • GET /api/v1/citations/trace
  • GET /api/v1/authorities
  • GET /api/v1/filings/recent

The contract lives in openapi/rival-regulatory-api.yaml.

Safety Boundary

This toolkit does not submit filings, alter compliance records, close corrective actions, delete evidence, or take workspace actions. It is a source retrieval and citation layer for agents and developer systems. Regulated work still requires qualified human review.

This toolkit is not legal, engineering, environmental, safety, or compliance advice. Teams are responsible for validating applicability, obligations, filings, and operational decisions with qualified professionals.

Development

npm install
npm run build
npm test

License

Apache-2.0

Frequently asked questions

What is Rival Regulatory Toolkit?

Read-only regulatory source retrieval, citation tracing, authority metadata, and recent filings.

How do I install Rival Regulatory Toolkit?

It runs on your machine. In Claude Code: claude mcp add rival-regulatory-toolkit -e 'RIVAL_API_KEY=<your rival_api_key>' -e 'RIVAL_API_BASE_URL=<RIVAL_API_BASE_URL>' -e 'RIVAL_FIXTURE_MODE=<RIVAL_FIXTURE_MODE>' -- npx -y @tryrival/regulatory-toolkit@0.1.5. For other clients, paste the JSON configuration from this page into their MCP settings.

Does Rival Regulatory Toolkit need an API key?

Yes. It expects RIVAL_API_KEY, which you set in its configuration.

Is Rival Regulatory Toolkit open source?

Yes. Its code is on GitHub under the Apache-2.0 license.

Who maintains Rival Regulatory Toolkit?

It is published by rival-intelligence. AI.tn lists it but does not maintain or endorse it.

From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.