ExtractAPI's MCP server exposes one extract tool. Without a key it performs bounded public HTTP fetching with redirect, SSRF, and response-size checks. With EXTRACTAPI_KEY it calls the authenticated browser-backed API for JavaScript rendering, waits, selectors, and structured output. Neither mode guarantees access to protected sites.
cd mcp npm install EXTRACTAPI_KEY=ext_yourkey node server.js
{
"mcpServers": {
"extractapi": {
"command": "node",
"args": ["/path/to/extractapi/mcp/server.js"],
"env": { "EXTRACTAPI_KEY": "your-key" }
}
}
}
Keep the key in the MCP process environment. Never paste it into prompts, client-side JavaScript, or support messages. The repository's mcp/README.md contains additional stdio examples.
For a complete workflow, see the AI-agent extraction guide and the REST quickstart.