io.github.massanaRoger/extracto-mcp

السجل الرسمي أخرى

Turn any URL plus a schema into validated, typed JSON via the Extracto API.

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

NPM package extracto-mcp
Claude Code
claude mcp add extracto-mcp -e 'EXTRACTO_API_KEY=<your extracto_api_key>' -e 'EXTRACTO_BASE_URL=<EXTRACTO_BASE_URL>' -e 'EXTRACTO_TIMEOUT_MS=<EXTRACTO_TIMEOUT_MS>' -- npx -y extracto-mcp@0.1.2
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "extracto-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "extracto-mcp@0.1.2"
            ],
            "env": {
                "EXTRACTO_API_KEY": "<your extracto_api_key>",
                "EXTRACTO_BASE_URL": "<EXTRACTO_BASE_URL>",
                "EXTRACTO_TIMEOUT_MS": "<EXTRACTO_TIMEOUT_MS>"
            }
        }
    }
}

متغيرات البيئة

  • EXTRACTO_API_KEY إلزامي سري Your Extracto API key from https://app.getextracto.dev/keys
  • EXTRACTO_BASE_URL Override the API host (defaults to https://app.getextracto.dev)
  • EXTRACTO_TIMEOUT_MS Per-request timeout in milliseconds (default 90000)

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. extracto-mcp
  2. Quick start
  3. Tools
  4. Configuration
  5. Development
  6. Related
  7. License

extracto-mcp

Model Context Protocol server for Extracto. It gives Claude, Cursor, Claude Code, and any MCP client the ability to turn a URL plus a schema into validated, typed JSON — no prompt engineering, no HTML parsing, and no hallucinated fields (missing data comes back as null).

Quick start

You need an Extracto API key. Get one at app.getextracto.dev/keys.

The server runs over stdio and is published to npm, so most clients just need this config block.

Claude Desktop

Edit claude_desktop_config.json (Settings → Developer → Edit Config):

{
  "mcpServers": {
    "extracto": {
      "command": "npx",
      "args": ["-y", "extracto-mcp"],
      "env": { "EXTRACTO_API_KEY": "exa_live_your_key_here" }
    }
  }
}
Cursor

Add to ~/.cursor/mcp.json (or the project .cursor/mcp.json) with the same block.

Claude Code
claude mcp add extracto -e EXTRACTO_API_KEY=exa_live_your_key_here -- npx -y extracto-mcp

Restart the client and ask it to extract something, e.g. "Use extracto to pull the title, language and star count from github.com/facebook/react."

Tools

ToolWhat it does
extractSynchronous extraction from a single URL (up to ~90s). Returns { data, meta }.
extract_asyncSubmit an async job for heavy or anti-bot pages. Returns a job id immediately.
get_jobPoll an async job for status and result.
list_jobsList your recent async jobs.
The schema argument

A schema is an object mapping field names to types. A type is:

  • a literal: "string", "number", "boolean", "array", "object"
  • a one-element array for a list: ["string"], or [{ "title": "string" }]
  • a nested object: { "author": { "name": "string" } }
{
  "title": "string",
  "price": "number",
  "tags": ["string"],
  "reviews": [{ "user": "string", "stars": "number" }]
}

Only fields that are actually found on the page are returned; anything missing is null rather than guessed.

Configuration

All configuration is via environment variables passed by your MCP client:

VariableRequiredDescription
EXTRACTO_API_KEYyesYour key from app.getextracto.dev/keys.
EXTRACTO_BASE_URLnoOverride the API host (defaults to https://app.getextracto.dev).
EXTRACTO_TIMEOUT_MSnoPer-request timeout in ms (default 90000).

Development

npm install
npm run dev        # run from source with tsx
npm run typecheck
npm run build      # bundle to dist/ with tsup

License

MIT

الأسئلة الشائعة

ما هو io.github.massanaRoger/extracto-mcp؟

Turn any URL plus a schema into validated, typed JSON via the Extracto API.

كيف أثبّت io.github.massanaRoger/extracto-mcp؟

يعمل على جهازك. في Claude Code: claude mcp add extracto-mcp -e 'EXTRACTO_API_KEY=<your extracto_api_key>' -e 'EXTRACTO_BASE_URL=<EXTRACTO_BASE_URL>' -e 'EXTRACTO_TIMEOUT_MS=<EXTRACTO_TIMEOUT_MS>' -- npx -y extracto-mcp@0.1.2. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج io.github.massanaRoger/extracto-mcp إلى مفتاح API؟

نعم. يتطلب EXTRACTO_API_KEY، وتضبطها في إعداداته.

هل io.github.massanaRoger/extracto-mcp مفتوح المصدر؟

نعم. شيفرته متاحة على GitHub بترخيص MIT.

من يصون io.github.massanaRoger/extracto-mcp؟

ينشره massanaRoger. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.