MCP server
Expose PolDex tools directly inside agent runtimes. Agents can list schemas, estimate extraction, run batches, inspect jobs, and download artifacts.
npm install -g @poldex/mcp-server POLDEX_API_KEY=pd_live_YOUR_KEY poldex-mcp-server
PolDex gives agents machine-readable access to insurance document extraction. Commercial P&C is the first live wedge; MCP tools, CLI commands, OpenAPI contracts, live schema discovery, and guarded credit-spend workflows are the expansion rails.
Expose PolDex tools directly inside agent runtimes. Agents can list schemas, estimate extraction, run batches, inspect jobs, and download artifacts.
npm install -g @poldex/mcp-server POLDEX_API_KEY=pd_live_YOUR_KEY poldex-mcp-server
Give coding agents and terminal workflows a direct command surface for schemas, estimates, extraction, batch status, and downloads.
npm install -g @poldex/cli poldex extract policy.pdf --schema commercial_gl --yes --json
Let custom agent frameworks inspect endpoints, request bodies, auth requirements, response shapes, and error contracts.
curl https://poldex-web.pages.dev/openapi.json
These files let agents discover the API, schemas, MCP command, CLI command, authentication model, and safety rules without needing a human to click through the site.
Open the machine-readable resource.
/openapi.jsonOpen the machine-readable resource.
/.well-known/poldex-agent.jsonOpen the machine-readable resource.
/llms.txtOpen the machine-readable resource.
/docsOpen the machine-readable resource.
These examples use the official registry-ready package, pin the current MCP server version, and keep the API key in the client environment.
Add PolDex as a local stdio MCP server in Claude Desktop.
{
"mcpServers": {
"poldex": {
"command": "npx",
"args": ["-y", "@poldex/mcp-server@0.0.3"],
"env": {
"POLDEX_API_KEY": "pd_live_YOUR_KEY",
"POLDEX_API_BASE_URL": "https://poldex-api.plain-water-cd0f.workers.dev"
}
}
}
}Use Claude Code's JSON add command for the same local stdio server.
claude mcp add-json poldex '{
"type": "stdio",
"command": "npx",
"args": ["-y", "@poldex/mcp-server@0.0.3"],
"env": {
"POLDEX_API_KEY": "pd_live_YOUR_KEY",
"POLDEX_API_BASE_URL": "https://poldex-api.plain-water-cd0f.workers.dev"
}
}'Add this to Cursor MCP settings or the user's Cursor MCP JSON config.
{
"mcpServers": {
"poldex": {
"command": "npx",
"args": ["-y", "@poldex/mcp-server@0.0.3"],
"env": {
"POLDEX_API_KEY": "pd_live_YOUR_KEY",
"POLDEX_API_BASE_URL": "https://poldex-api.plain-water-cd0f.workers.dev"
}
}
}
}Add PolDex to a Codex-style TOML MCP configuration.
[mcp_servers.poldex]
command = "npx"
args = ["-y", "@poldex/mcp-server@0.0.3"]
env = { POLDEX_API_KEY = "pd_live_YOUR_KEY", POLDEX_API_BASE_URL = "https://poldex-api.plain-water-cd0f.workers.dev" }For terminal-first agents, run the MCP server or use the CLI safe flow.
export POLDEX_API_KEY=pd_live_YOUR_KEY npx -y @poldex/mcp-server@0.0.3 # Safe CLI flow: poldex schemas --json poldex estimate policy.pdf --schema commercial_gl poldex extract policy.pdf --schema commercial_gl --yes --json
Discover supported schemas.
Estimate pages and credits.
Confirm extraction cost.
Process files, URLs, or text.
Poll status or receive connector events.
Download JSON, CSV, XLSX, or ZIP artifacts.
The live PolDex MCP surface is currently local stdio through @poldex/mcp-server.
A hosted remote MCP endpoint remains roadmap work because it needs authenticated tenant isolation, per-tool spend confirmation, rate limits, audit logging, and the same credit safety model as the API.
The MCP tool requires confirm_cost: true. The CLI requires --yes. Direct async extraction requires an Idempotency-Key. The estimate path is always available before processing.
poldex schemas --json poldex estimate policy.pdf --schema commercial_gl poldex extract policy.pdf --schema commercial_gl --yes --json poldex batch bat_123 --json poldex download bat_123 results.zip --out ./results.zip
Start with OpenAPI or use the docs agent section for MCP and CLI setup.