Back to Integrations
Beta
MCP Server v1 · HTTP transport

Made For Law MCP Server

Access your leads and calculator data from Claude Code, Cursor, Windsurf, or any MCP-compatible AI agent — using your MFL API key.

Your Leads, In Context

Pull your latest leads, filter by calculator or status, and review results — all within your AI coding tool without switching tabs.

Works in Your AI Editor

MCP protocol means Claude Code, Cursor, or Windsurf can fetch your data mid-conversation. No copy-paste, no tab-switching.

Secure API Key Auth

Each connection uses a personal API key from your portal. Keys are scoped to your account only and can be revoked any time.

Step 1 — Get Your API Key

Your MFL API key is in the portal under Settings → API Keys. If you don't have an account yet, start a free trial — takes 2 minutes.

Step 2 — Add to Your AI Tool

Config file: ~/.mcp.json or project root .mcp.json
{
  "mcpServers": {
    "madeforlaw": {
      "type": "http",
      "url": "https://portal.madeforlaw.com/api/v1/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_MFL_API_KEY"
      }
    }
  }
}

Replace YOUR_MFL_API_KEY with the key from your portal. Restart Claude Code after saving.

Step 3 — Try It

Once connected, ask your AI assistant about your leads and calculator activity. Here are some starting points:

Recent Leads
get_leads
You:

Show me my 10 most recent probate leads and their status.

MFL:
[
  { "name": "Jane Smith", "email": "[email protected]", "calculatorSlug": "probate",
    "state": "OH", "status": "new", "createdAt": "2026-04-15T14:32:00Z" },
  { "name": "Robert Chen", "email": "[email protected]", "calculatorSlug": "probate",
    "state": "CA", "status": "contacted", "createdAt": "2026-04-14T09:12:00Z" }
  ... 8 more
]
Calculator Activity
get_calculator_results
You:

What calculator results came in this week? Focus on estate tax.

MFL:
[
  { "calculatorSlug": "estate-tax", "state": "WA",
    "metadata": { "estateValue": 3200000, "federalTax": 0, "stateTax": 82000 },
    "createdAt": "2026-04-15T11:44:00Z" },
  { "calculatorSlug": "estate-tax", "state": "NY",
    "metadata": { "estateValue": 1850000, "federalTax": 0, "stateTax": 24200 },
    "createdAt": "2026-04-14T16:22:00Z" }
]
Performance Dashboard
get_directory_stats
You:

Give me a 30-day summary — which calculators are getting the most leads?

MFL:
{
  "windowDays": 30,
  "totalLeadsAllTime": 847,
  "leadsInWindow": 134,
  "byStatus": { "new": 89, "contacted": 31, "converted": 14 },
  "topCalculators": [
    { "slug": "probate", "name": "Probate Cost Calculator", "count": 67 },
    { "slug": "executor-fee", "name": "Executor Fee Calculator", "count": 28 },
    { "slug": "estate-tax", "name": "Estate Tax Calculator", "count": 18 }
  ]
}

Available Tools

Three tools are available in the current release. More are coming — calculator history export, lead scoring, and PDF generation.

get_leads

Retrieve your leads. Filter by status (new, contacted, converted), calculator slug, or date range. Returns contact info, state, and calculator results.

get_calculator_results

Completed calculator sessions from your embeds. Filter by calculator slug or date. Returns state, metadata, and calculation outputs.

get_directory_stats

30-day (or custom window) summary: total leads, leads by status, and top calculators by lead volume.

API Reference

POST https://portal.madeforlaw.com/api/v1/mcp

Standard JSON-RPC 2.0 over HTTP POST. Include your API key as a Bearer token in the Authorization header.

# Example: list tools
curl -X POST https://portal.madeforlaw.com/api/v1/mcp \ -H "Authorization: Bearer YOUR_MFL_API_KEY" \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","method":"tools/list","id":1}'
# Example: call get_leads
curl -X POST https://portal.madeforlaw.com/api/v1/mcp \ -H "Authorization: Bearer YOUR_MFL_API_KEY" \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","method":"tools/call","params":{"name":"get_leads","arguments":{"limit":10,"status":"new"}},"id":2}'

Your data, your access only

Each API key is scoped to your account only. The MCP server returns leads and calculator data for your firm — not any other firm's. Keys can be revoked instantly from Settings → API Keys.

Ready to connect?

Get your API key in 2 minutes. 14-day free trial, no credit card required at signup.