Aerostack
Aerostack
extension

Legal Document Analyzer

legal
Updated Mar 6, 2025
GitHub
terminal — aerostack cli
$npx aerostack add aerostack/legal-document-analyzer
smart_toy

Use with AI Assistants

MCP

Connect Claude, Cursor, or any MCP-compatible client — then call this function by slug

① Add MCP Server

Add this once — access all Aerostack functions from your AI tool.

claude_desktop_config.json
{
  "mcpServers": {
    "aerostack": {
      "url": "https://mcp.aerostack.dev",
      "type": "http"
    }
  }
}

② Call this function

Ask your AI to use the call_function tool with this slug:

call_function
call_function({
  slug: "legal-document-analyzer",
  args: {}
})

Legal Document Analyzer

Upload contracts and analyze them with AI. Scope questions to specific documents and extract named clause types.

Endpoints

MethodPathDescription
POST/ingestUpload contract text or URL
POST/analyzeAsk a question (optional document_id to scope)
POST/extractExtract named clause types in parallel
GET/docsList uploaded contracts
DELETE/docs/:docIdRemove a contract
GET/healthStatus check

All responses include a legal disclaimer. This does not constitute legal advice.

Metadata

upgradeVersion1.0.0
gavelLicenseMIT
languageLanguagejavascript
cloudProvidercloudflare-worker

Tags

deployed_code

Build and publish your own functions

Write a TypeScript function, deploy it to the edge, and share it with thousands of developers — in minutes.

Similar Functions

View all →