Aerostack
Aerostack
memory

Data Extractor

AI
Updated Mar 13, 2025
GitHub
terminal — aerostack cli
$npx aerostack add aerostack/data-extractor
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: "data-extractor",
  args: {}
})

Data Extractor

Extract structured JSON from unstructured text using AI. Define your output schema and get clean data.

Endpoints

MethodPathDescription
POST/extractExtract data using a schema
POST/extract/autoAuto-detect and extract key fields
GET/healthStatus check

Extract with schema

curl -X POST {endpoint}/extract \
  -d '{"text":"Invoice #1234 from Acme Corp, total $99.50, due 2024-03-15","schema":{"invoice_number":"string","company":"string","total":"number","due_date":"string"}}'

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 →