Corpus Law
Search and cite US federal, state, and municipal law with verbatim citations, then run LLC/nonprofit formation intake — free agent-native tools on a remote Streamable HTTP endpoint.
Documentation
For AI agents: read the machine-readable documentation index at https://corpuslaw.us/llms.txt or the single-file full reference at https://corpuslaw.us/llms-full.txt.
Corpus MCP Server
Not a developer, or just want to form a company from the agent you already use? Start with the founder guide →
Let any AI agent prepare a real LLC or nonprofit filing for its user, with a human at Corpus reviewing the exact payload before anything is submitted to the state (unless the founder skips that review on an expedited filing) — and give it US law with real citations. Free tool calls.
Live right now: 2,836,906 provisions indexed and searchable. That number is read from the same rollup law.list_coverage returns — check it yourself.
Server endpoint · REST API docs · Verify it yourself → · Get an API key →
Connect
Claude Code — one command:
claude mcp add --transport http corpus https://corpuslaw.us/api/mcp
No install needed. Paste this prompt into Claude, ChatGPT, or any assistant with web access:
Works in any assistant with web access. Open in Claude · Open in ChatGPT
The prompt points at /agents/intake.md and forbids install instructions. Deep links are a convenience; copying the prompt is what actually works everywhere.
Project-scoped .mcp.json (commit it, the whole team gets it), Cursor (.cursor/mcp.json), or any JSON-config client:
{
"mcpServers": {
"corpus": {
"type": "http",
"url": "https://corpuslaw.us/api/mcp"
}
}
}
Claude Desktop / claude.ai: Settings → Connectors → Add custom connector → paste the URL. Older stdio-only clients: npx mcp-remote https://corpuslaw.us/api/mcp. Everything else (Windsurf, Zed, MCP Inspector, custom agents): it's a standard Streamable HTTP server — stateless JSON-RPC, no OAuth, no sessions, so it works from serverless and CI too.
Auth: none required. Anonymous callers get 250 searches a month at 10 req/min, per IP; keyless calls from Claude's and ChatGPT's connector servers (their published egress ranges) have no monthly cap. Add "headers": { "Authorization": "Bearer cp_…" } to the server config for 1,000 searches a month at 30 req/min, renewing on the 1st — free API keys are self-serve and instant at /settings, with no review step and no expiry. Form a company through Corpus and your key permanently gets 5,000 searches a month at 60 req/min — applied automatically once the filing is accepted, nothing to claim. Past the free allotment, research is $0.005 per search from prepaid credits (as low as $0.0033 in the larger packs), and the monthly allotment stays yours after you add a card. Every formation tool and account.status is always free — no research quota can block a formation order. Keys and credits are shared with the REST API.
Tools (server v1.2.1 — generated from the live registry)
| Tool | What it does | Cost |
|---|---|---|
law.search | Searches US federal, state, and municipal law by topic or keyword (legality, permits, zoning, licensing, compliance, filing requirements). Returns ranked provisions with verbatim citations, headings, snippets, and node ids. jurisdiction limits results to one state, federal law, or a city. | 1 search* |
law.get_node | Returns the full official text, citation, and hierarchy of one legal provision, by its node id (the UUID in search results). | 1 search* |
law.list_coverage | Lists the covered jurisdictions (federal, state, and municipal) with per-jurisdiction provision counts, searchable-chunk counts, GIS status, and a placeholder flag. | 1 search* |
account.status | Reports the credit balance, tier, rate limits, and upgrade options for the API key on this connection, or the free-tier allowance and the key URL for an anonymous caller. Free — this call does not consume a credit. Also mints or returns a referral code; referral_code on later calls keeps the same referral identity. | free |
formation.requirements | Returns the intake checklist for forming an LLC (limited liability company) or nonprofit corporation in one US state: every required field, that state's specific questions, live all-in pricing including the state filing fee, and the optional EIN add-on with its price when available. Free; does not consume credits. | free |
formation.compare | Compares LLC formation providers on price, recurring costs, registered-agent renewals, and machine/agent capabilities, from a dated dataset of 20 LLC services + 1 adjacent verified against primary sources. Corpus is one of the compared providers and is scored with the same rubric, including its own gaps; the response says so. Free; does not consume credits. | free |
formation.lookup_naics | Returns candidate NAICS industry codes (typically 2–6) for a plain-English business description. A code is required for every LLC, and for nonprofits in AK, CT, LA, MS, TN, WV. Free; does not consume credits. | free |
formation.check_name | Runs a preliminary check of a proposed company name in one US state: whether it carries the entity designator the entity needs, words that commonly need another agency's approval, and, in states whose business register is published as open data (CO, CT, NY, OR, PA), existing entities with the same or a similar name. Other states return the official name search to run by hand, and federal trademarks are not searched automatically (the USPTO search link is returned). Not a guarantee: the Secretary of State decides at filing. Reserves and files nothing. Free; does not consume credits. | free |
formation.handoff | Validates an LLC or nonprofit formation draft (people, address, management, EIN answers, state-specific answers) and returns exactly what is still missing. A complete draft also returns a prefilled corpuslaw.us link that opens the formation agent with every detail loaded, where the founder reviews, signs in, and pays. Free; does not consume credits. | free |
formation.status | Reports where an LLC or nonprofit formation order is, from its orderId and trackingToken (returned when an agent checks the order out, and carried in the founder's order-tracking link): its phase (awaiting payment, awaiting the founder's emailed confirmation, in Corpus's review, filing, submitted to the state, accepted by the state, completed), a dated milestone list, the state's confirmation number once the filing is submitted, and the certificate URL once it exists. filingSubmitted is the only field that means the state has the filing. Read-only; no API key; free, does not consume credits. | free |
formation.checkout | Creates the founder's LLC or nonprofit formation order and a payment link — no API key, no Corpus sign-in. By default the link is a Stripe-hosted checkout link (cards, Apple Pay, Google Pay, Link and the other methods Stripe offers the payer). rail: "usdc" returns a USDC (Solana) payment request instead; a USDC request cannot be switched back to Stripe while it is open. A USDC payment response includes a payPageUrl: an ordinary https link to a Corpus page with a QR code to scan with a phone camera, a button that opens a Solana wallet, and the address and exact amount for a manual send; the founder pays the EXACT USDC amount from a self-custody wallet, never an exchange withdrawal. rail: "pack" redeems 1 prepaid formation credit for an LLC with the owner’s API key (Bearer cp_... with formation scope). Any additional state-fee amount due requires payment through the returned Stripe link before redemption settles. The first call takes the complete draft, the founder's contactEmail, an idempotencyKey (the same order is returned on retry), and consent { version, registeredAgentAcknowledgements: true }, which records that the founder accepted the registered-agent acknowledgements. A queue-lane order first returns a submission promise, accepted with a second call { orderId, trackingToken, acceptPromise: { termDays }, rail } that repeats the rail the first call chose (its nextSteps spell the call out). After paying, the founder must click the confirmation link Corpus emails within 48 hours, or the order is refunded. Nothing is filed before that confirmation, and then Corpus's human review, unless the founder chose to skip review on an expedited order (offered only where formation.requirements shows a SKIP REVIEW line). The tax-ID add-on is not sold here. Zero research/API credits are consumed. Choosing pack spends 1 prepaid formation credit. | free |
formation.payment_status | Reports the payment state of an order created by formation.checkout: awaiting, processing (the payment method settles later, or Corpus is recording it), paid, expired, failed, underpaid, held (staff review, including a payment hold or dispute) or refunded (in full; formation.status separately reports filing progress) — plus which rail it is on and whether the founder has confirmed by email (required within 48 hours of payment; it reads expired once that window closes unconfirmed, and the order is then listed for a refund). Free; does not consume credits. | free |
formation.webhook | Registers an https endpoint on one LLC or nonprofit formation order, from its orderId and trackingToken, so Corpus POSTs each lifecycle step instead of the agent polling formation.status: paid, founder confirmed, in review, review approved, submitted to the state, accepted, certificate available, completed, failed or cancelled. Each step is sent at most once per endpoint, signed per the Standard Webhooks spec (webhook-id, webhook-timestamp, webhook-signature), with the formation.status projection as data and nothing more. Returns a subscriptionId and a whsec_ secret that is shown ONCE, then sends a formation.webhook.test delivery. At most 3 active endpoints per order. Pass { orderId, trackingToken, subscriptionId, remove: true } to remove one. Failed deliveries retry for about 45 hours; 410 Gone or three abandoned deliveries in a row disable the endpoint. No API key; free, does not consume credits. | free |
- counts against the monthly free allotment (1,000 with a key, 250 anonymous); $0.005 each beyond it. Every tool is read-only except
account.status, which mints your referral code;formation.checkoutcreates the order and its chosen payment or pack redemption;formation.payment_statusreports payment progress, andformation.statusseparately reports filing progress. Zero research/API credits are consumed. Choosing pack redeems 1 prepaid formation credit with the owner’s formation-scoped API key; any additional state-fee amount due is paid through the returned Stripe link. MCP traffic does not charge a saved card.
Compare which LLC services offer an MCP server or API.
Machine-readable discovery
Agents, registries and crawlers can find everything above without reading this page. Every page on corpuslaw.us carries <link rel="ard">, <link rel="ai-catalog">, <link rel="describedby"> (llms.txt) and <link rel="service-desc"> (OpenAPI) tags, repeated in an HTTP Link header. The ARD manifest lists Corpus's agent resources with the requests each one serves; its MCP entry points to the Server Card, which carries the endpoint.
| Document | What it is for |
|---|---|
| ARD manifest | Agentic Resource Discovery v0.91 catalog of Corpus's agent resources, with representative queries. |
| AI Catalog | The same catalog at ARD's predecessor path (Lighthouse, MCP Server Card discovery). |
| MCP Server Card | Connection details for the MCP server (SEP-2127 draft): endpoint, transport, protocol version, optional auth header. |
| MCP server card (legacy) | Older card format with the full tool list, for scanners that read /.well-known/mcp/. |
| llms.txt | Short orientation for language models: what Corpus is and where everything lives. |
| llms-full.txt | The whole agent surface inlined into one document. |
| OpenAPI 3.1 | REST API contract — the same corpus and credits as the MCP server. |
| WebMCP manifest | Tools an in-browser agent can call on corpuslaw.us pages. |
| Agent Skills index | Well-known index of the installable business-formation skill. |
The discovery documents describe the default public server. Optional tools appear in tools/list when they are switched on; that runtime list is authoritative.
Walkthrough — research a legal question
law.list_coverage— confirm the jurisdiction is searchable (aPLACEHOLDERrow means an empty search is expected, not a bug).law.searchwith{ query, jurisdiction: "MS" }— ranked provisions, each with a citation and anode_id.law.get_nodewith thenode_id— the full section text, itseffectiveDatewhen set, and aprovenancearray recording when Corpus last pulled each source.- Answer citing the returned
citationstring verbatim — tool output is the only citation source.
Walkthrough — form an LLC from your agent
Your agent is the intake agent: it collects everything in its own conversation (free calls), then hands the user one link. Nothing is re-asked on our side.
formation.requirements{ entityType: "llc", state: "MS" }— the exact required-field checklist, the state's quirk questions (with the exactstateSpecificAnswerskeys), live all-in pricing, and — when available — the optional EIN add-on at the returned live price. Derived from the same validator that gates the order, so it can't drift.- Collect the answers from your user in conversation — name, address, people, management style.
formation.lookup_naics— e.g. "neighborhood bakery" →311811 — Retail Bakeries; confirm with the user.formation.handoffwith everything so far — the response lists exactly what's STILL MISSING. Keep collecting and call again (validation is free) until it reports ✓ Draft COMPLETE.- Hand the user the returned link. It opens corpuslaw.us/formation with every detail pre-loaded; they review, sign in, and pay. The founder chooses card or, when offered, USDC on Solana. The agent never handles payment credentials; human review still happens before state submission, unless the founder chooses to skip that review on an expedited filing. A partial handoff works too — our agent finishes the intake in chat.
Privacy by construction: the draft travels in the URL fragment (#prefill=), which never leaves the browser — no PII in server or CDN logs. No SSN field exists anywhere in the tool schemas; the founder enters it in a secure panel at checkout, never in chat. #prefill= is an MCP-only format: only ever emit one when formation.handoff returned the token — never hand-build, encode, or guess one, and never emit an empty #prefill=.
No connector? You do not need one to build a complete handoff link. Fetch corpuslaw.us/agents/intake.md and follow it: it builds a plain URL with named query params (?entity=&state=&desc=…) plus named hash fields (#email=&street=&owner=…). That named-query + named-hash URL is the connector-free format for ChatGPT, Claude without MCP, and any web-searching agent — and like the MCP path, it must never include a fabricated #prefill=.
Agent checkout — Stripe payment link or USDC on Solana or prepaid formation pack
Your agent can create a formation order. By default it gets a Stripe Checkout payment link; USDC on Solana is available with rail: "usdc". For an LLC, explicitly choosing rail: "pack" requires the owner’s formation-scoped API key and redeems 1 prepaid formation credit. Any additional state-fee amount due is paid through a returned Stripe link. No research/API credits are consumed.
- When formation.handoff reports the draft COMPLETE and the founder wants to pay now, call formation.requirements and read them its registered-agent acknowledgements word for word; get an explicit yes.
- Call formation.checkout with the draft, the founder's contactEmail, consent { version, registeredAgentAcknowledgements: true } and an idempotencyKey you reuse on retry. No sign-in; USDC and hosted-card checkout need no API key. A queue-lane order first returns a submission promise to read out and accept with a second call.
- formation.checkout returns a Stripe-hosted checkout link (cards, Apple Pay, Google Pay, Link and the other methods Stripe offers the payer): give the founder that link. Only if they ask to pay in crypto, call it again with rail: "usdc" — a USDC request cannot be switched back to Stripe while it is open, so say so first. For USDC, give the founder the payPageUrl it returns — an ordinary https link to a Corpus page with a QR code to scan with a phone camera, a button that opens a Solana wallet, and the address and exact amount for a manual send. USDC is paid as the exact amountUsdc from a self-custody wallet, never an exchange withdrawal.
- For an LLC, explicitly choose rail: "pack" with the owner’s formation-scoped API key (Bearer cp_...) to redeem 1 prepaid formation credit. Repeat rail: "pack" on the acceptPromise call. Any additional state-fee amount due must be paid through the returned Stripe link before redemption settles. Zero research/API credits are consumed.
- Poll formation.payment_status. After payment the founder gets an email and must click its confirmation link within 48 hours; nothing is filed before that, then Corpus's human review follows unless the founder chose to skip review on an expedited order, and unconfirmed orders are refunded.
- Corpus submits within 10 business days of payment, provided you confirm within 48 hours; otherwise we refund you.
Try it raw (no client needed)
curl -s https://corpuslaw.us/api/mcp -H 'content-type: application/json' -d '{
"jsonrpc": "2.0", "id": 1, "method": "tools/call",
"params": {
"name": "law.search",
"arguments": { "query": "food truck permit", "jurisdiction": "MS", "limit": 3 }
}
}'
One JSON-RPC message per POST; batches supported. Errors: -32002 monthly allotment used up and wallet empty (buy credits at /settings, or wait for next month; anonymous callers get it when the per-IP monthly allotment is spent, and a free key fixes it), -32003 rate limit (back off, or raise 10 → 30 req/min with a free key). Tool-level problems come back as normal results with isError: true and a plain-English message your model can act on.