io.github.massanaRoger/extracto-mcp
Turn any URL plus a schema into validated, typed JSON via the Extracto API.
Installation
Ajoutez ceci à la configuration MCP de votre client (Claude Desktop : claude_desktop_config.json ; Cursor : .cursor/mcp.json ; VS Code et les autres utilisent la même forme « mcpServers »).
extracto-mcpclaude 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
{
"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>"
}
}
}
}
Variables d'environnement
EXTRACTO_API_KEYobligatoire secret Your Extracto API key from https://app.getextracto.dev/keysEXTRACTO_BASE_URLOverride the API host (defaults to https://app.getextracto.dev)EXTRACTO_TIMEOUT_MSPer-request timeout in milliseconds (default 90000)
Documentation
Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent GitHub.
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
| Tool | What it does |
|---|---|
extract | Synchronous extraction from a single URL (up to ~90s). Returns { data, meta }. |
extract_async | Submit an async job for heavy or anti-bot pages. Returns a job id immediately. |
get_job | Poll an async job for status and result. |
list_jobs | List 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:
| Variable | Required | Description |
|---|---|---|
EXTRACTO_API_KEY | yes | Your key from app.getextracto.dev/keys. |
EXTRACTO_BASE_URL | no | Override the API host (defaults to https://app.getextracto.dev). |
EXTRACTO_TIMEOUT_MS | no | Per-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
Related
extracto— the official TypeScript/JavaScript SDK.- getextracto.dev — docs and API reference.
License
MIT
Questions fréquentes
Qu'est-ce que io.github.massanaRoger/extracto-mcp ?
Turn any URL plus a schema into validated, typed JSON via the Extracto API.
Comment installer io.github.massanaRoger/extracto-mcp ?
Il s'exécute sur votre machine. Dans 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. Pour les autres clients, collez la configuration JSON de cette page dans leurs réglages MCP.
Faut-il une clé API pour io.github.massanaRoger/extracto-mcp ?
Oui. Il attend EXTRACTO_API_KEY, à renseigner dans sa configuration.
io.github.massanaRoger/extracto-mcp est-il open source ?
Oui. Son code est sur GitHub sous licence MIT.
Qui maintient io.github.massanaRoger/extracto-mcp ?
Il est publié par massanaRoger. AI.tn le référence sans le maintenir ni le recommander.
Issu du registre MCP officiel. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.