Getting Started

Quickstart

Set up Facta with your AI agent in under 5 minutes.

1

Get your API key

Sign up at facta.tech/dashboard to get your API key. It starts with fct_.

2

Add to your MCP client

Claude Code

claude mcp add --transport http facta https://facta.tech/mcp

Cursor / VS Code / Other

Add to your MCP configuration:

{
  "mcpServers": {
    "facta": {
      "url": "https://facta.tech/mcp",
      "headers": { "FACTA_API_KEY": "your-api-key" }
    }
  }
}
or

Use the REST API directly

Call the API from any language using standard HTTP requests.

curl -X POST https://facta.tech/api/legal/find \
  -H "Authorization: Bearer your-api-key" \
  -H "Content-Type: application/json" \
  -d '{"query": "fair use copyright"}'

The Research Workflow

Facta provides 7 tools that work together for complete legal research:

1
Search for sourceslegal_find

Query cases, statutes, and regulations. Returns ranked candidates with snippets.

2
Verify before citinglegal_verify

Check each candidate against the actual source. Get a confidence score 0-1.

3
Go deeperlegal_get_full_text

Get complete document text with AI-powered highlights for key passages.

4
Find related caseslegal_find_similar

Discover related precedents and citing cases.

5
Extract citationslegal_extract_citations

Pull all case citations, statute references, and regulations from a document.

Verification Scoring

The legal_verify tool scores sources based on multiple signals:

SignalPointsDescription
citation_match+0.50Citation text found in document
court_reference+0.15Mentions of courts
legal_code+0.15References to U.S.C., C.F.R.
legal_document+0.10Document type indicators
official_source+0.10.gov, CourtListener, Cornell

Important: A score of 0.6 or higher is required for verification. Including the citation parameter significantly improves accuracy.

Best Practices

  • 1

    Always verify before citing

    Use legal_find to get candidates, then legal_verify on each before using.

  • 2

    Include citation text

    Pass the expected citation to legal_verify to improve accuracy.

  • 3

    Use jurisdiction filters

    Narrow searches with resolve_jurisdiction for more relevant results.

  • 4

    Handle low scores gracefully

    If verification fails, try the next candidate instead of citing unverified sources.

Error Codes

CodeErrorDescription
-32001MISSING_API_KEYNo API key provided
-32002INVALID_API_KEYAPI key not found
-32003RATE_LIMITEDHourly limit exceeded
-32004PLAN_LIMITFeature requires upgrade

Rate Limits

PlanRequests/Hour
Free5
Plus500
Pro10,000

Next

API Reference

View all tools