rival-regulatory
OfficialThis server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Rival Regulatory Toolkit
Open-source SDK, CLI, MCP server, and schemas for connecting AI agents to Rival's source-grounded regulatory retrieval API.
Public site: https://tryrival.ai
Agent access: https://tryrival.ai/for-agents
Managed API default:
https://api.tryrival.ai
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.
Related MCP server: Magist MCP Server
Install
npm install @rival-intelligence/regulatory-toolkitFor local development from source:
npm install
npm run buildEnvironment
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=trueTypeScript 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 authoritiesFixture mode:
rival-regulatory search "pipeline corrosion" --fixtureMCP Server
Run directly:
npx @rival-intelligence/regulatory-toolkit mcpMCP 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_corpusretrieve_source_texttrace_citationlist_authoritiesget_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-toolkitFixture mode:
docker run --rm -i -e RIVAL_FIXTURE_MODE=true rival-regulatory-toolkitSee docs/self-hosting.md for deployment notes.
API Contract
The API contract starts with five read-only endpoints:
GET /api/v1/searchGET /api/v1/sources/{source_id}GET /api/v1/citations/traceGET /api/v1/authoritiesGET /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 testLicense
Apache-2.0
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Read-only lookup of a register of AI-agent cases, its glossary and its library.
Keyless, read-only US public records for agents: SEC, FDA, enforcement, sanctions, market data.
Read-only Attify tools: AI agent verdicts, standards, attestations and definitions.
Resolve, search and verify legal citations against the official sources, with provenance.
Related MCP Servers
- AlicenseAqualityCmaintenanceExposes public marketplace data — offerings, screening and comparison, news, sponsor listings, and platform reference text — as typed read-only tools any MCP-compatible agent can call without an API key or account. Every response carries provenance, honest nulls for undisclosed values, and a standing disclaimer, and no registered tool can write or transact by default.9Apache 2.0

Magist MCP Serverofficial
AlicenseNot gradedqualityCmaintenanceConnects AI hosts to a deterministic, cited regulatory-compliance reference so agents can look up laws, search regulations, compute which requirements a product triggers, and find related Controls, vendors, enforcement actions, and counsel with primary-source links. It also exposes the accepted feature/market/audience catalog and a token verifier for grounding what was served.46 npmMIT- AlicenseAqualityCmaintenanceEnables users to list jurisdictions and retrieve agency details, primary-law citations, regulation catalogs, stored reimbursement figures, injury-level settlement data, and text from cataloged official regulation pages.4MIT
- AlicenseAqualityBmaintenanceEnables read-only searching and retrieval of U.S. legislation and multi-tier federal and state case law, plus citation verification against official registries, including Markdown document retrieval and court-hierarchy listing.6MIT