# Vaquill US Primary Law (`vaquill/us-primary-law-mcp`) Actor

Vaquill AI gives your AI Agent the real text of US law.

- **URL**: https://apify.com/vaquill/us-primary-law-mcp.md
- **Developed by:** [Vaquill AI](https://apify.com/vaquill) (community)
- **Categories:** MCP servers, AI, Developer tools
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $15.00 / 1,000 vaquill data credits

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Vaquill US Primary Law

Give your AI agent the actual text of US law.
This MCP server lets Claude, Cursor or any MCP client search, cite and read federal and state statutes and regulations, with a link to the official source on every section.

It is built for developers and legal teams putting agents, research tools and compliance workflows on top of primary law.

### What you get

- **5 million+ sections** of US primary law, kept current by scheduled refreshes.
- **Federal law:** the U.S. Code, the Code of Federal Regulations, the U.S. Constitution, the Federal Rules of Procedure and Evidence, the Federal Register, the Statutes at Large, and federal agency guidance.
- **State law:** statutory codes for all 50 states, DC and Puerto Rico, plus state regulations, constitutions, court rules and attorney general opinions, where each state publishes them.
- **Status on every section**, such as in force, repealed or superseded, so your agent does not cite dead law as current.
- **Citation resolution.** Turn a citation like `42 U.S.C. 1983` or `16 C.F.R. 444.1` into the exact section, confirmed, with its official source link. An unresolvable citation comes back as a clear negative, which is what you want when checking citations a model wrote.

Call `list_statutes_coverage` (free) for live counts by jurisdiction and body of law.

### Connect

Use this server URL with your Apify API token as a bearer token:

```text
https://vaquill--us-primary-law-mcp.apify.actor/mcp
```

Find your token in Apify Console under **Settings > API & Integrations**.

#### Claude Code

```bash
claude mcp add --transport http us-primary-law \
  https://vaquill--us-primary-law-mcp.apify.actor/mcp \
  --header "Authorization: Bearer YOUR_APIFY_TOKEN"
```

#### Cursor, VS Code and other clients

Add this to `mcp.json` or your client's equivalent:

```json
{
  "mcpServers": {
    "us-primary-law": {
      "url": "https://vaquill--us-primary-law-mcp.apify.actor/mcp",
      "headers": { "Authorization": "Bearer YOUR_APIFY_TOKEN" }
    }
  }
}
```

### Tools and pricing

You pay per Vaquill credit a call uses, at **$0.015 per credit**.
Calls that return an error are not charged, and several tools charge nothing when they find nothing.
A citation that does not resolve is still charged, because a confirmed "no such section" is the answer.

| Tool | What it does | Credits |
| --- | --- | --- |
| `search_us_statutes` | Semantic and keyword search across federal and state law | 4, plus 6 per result when full text is included |
| `resolve_statute_citation` | Resolve one citation to the exact section | 2, including a miss |
| `resolve_statute_citations_batch` | Resolve up to 50 citations in one call | 2 per citation submitted |
| `get_us_statute_section` | Section metadata: citation, title, hierarchy, status, source links | 2 |
| `get_sections_batch` | Metadata for up to 50 sections | 2 per section found |
| `get_us_statute_section_text` | Full text of a section | 6 |
| `get_section_neighbors` | The sections before and after, in statutory order | 2 |
| `get_section_cited_by` | Sections whose text cross-references this one | 2, free if none |
| `get_section_definitions` | The defined terms that govern a section | 4, free if none |
| `get_section_cross_state` | Provisions in other states on the same subject | 6, free if none |
| `get_section_changes` | Observed changes to a section over time | 1 |
| `list_statute_divisions` | Browse titles, chapters and parts | 1, free if none |
| `count_statute_sections` | Count sections in a scope before walking it | 1, free if none |
| `list_statutes_coverage` | Coverage by jurisdiction and body of law | Free |

Example: resolving a citation costs $0.03, and reading a section's full text costs $0.09.

### Good to know

- **Primary law only.** This server does not include case law.
- **Not legal advice.** It returns the text of the law and where it came from. Interpreting it is up to you.

### Support

Questions or a missing jurisdiction? Open an issue on this Actor or email <contact@vaquill.ai>.

# Actor input Schema

## Actor input object example

```json
{}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("vaquill/us-primary-law-mcp").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("vaquill/us-primary-law-mcp").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call vaquill/us-primary-law-mcp --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,vaquill/us-primary-law-mcp"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/uVPeZg5WUS5xjDVgN/builds/EeHYR0tvZaIuflckn/openapi.json
