PrecisionDocs

MCP & Connectors — Developer Docs

Remote and local MCP servers, and how MCP tools map to REST operations.

How do I connect over MCP?

Two MCP options wrap the same API:

  • Remote MCP - add https://api.precisiondocs.ai/mcp where the client supports a keyless connector: Claude custom connectors, Claude Code (claude mcp add --transport http precisiondocs https://api.precisiondocs.ai/mcp), OpenAI Codex (codex mcp add precisiondocs --url https://api.precisiondocs.ai/mcp then codex mcp login precisiondocs), or Cursor remote MCP. Authentication is PrecisionDocs OAuth - no pd_live_ key.
  • Local MCP - run npx -y @precisiondocs/mcp (Claude Desktop, Cursor Local tab, Gemini CLI) with your key in env.PRECISIONDOCS_API_KEY.

A timed-out remote-MCP ask is not a failure. When a remote-MCP call outlives the hosted connector wait, the proxy answers 504 with mcp_turn_still_running and recovery_action: "list_messages" - the turn behind it is still running and will finish and persist on its own. Do not re-ask (a second ask would charge a second turn): list the project messages in a minute and read the newest turn.

MCP tools and their REST equivalents:

MCP toolREST operation
precisiondocs_plan_checkPOST /v1/plan-check
precisiondocs_resolve_parcelsPOST /v1/parcels/resolve
precisiondocs_preview_parcelsPOST /v1/parcels/preview (returned to the client as an MCP image block)
precisiondocs_create_projectPOST /v1/projects
precisiondocs_add_sourcePOST /v1/projects/{id}/sources
precisiondocs_add_gis_sourcePOST /v1/projects/{id}/gis-sources
precisiondocs_list_projectsGET /v1/projects
precisiondocs_get_projectGET /v1/projects/{id}
precisiondocs_verify_zoningPATCH /v1/projects/{id}/parcels/{i}/zoning
precisiondocs_ask_agentPOST /v1/projects/{id}/messages
precisiondocs_get_messageGET /v1/projects/{id}/messages/{turn_id}
precisiondocs_list_messagesGET /v1/projects/{id}/messages
precisiondocs_get_site_knowledgeGET /v1/projects/{id}/site-knowledge
precisiondocs_export_gisPOST /v1/projects/{id}/gis-exports
precisiondocs_create_mapPOST /v1/projects/{id}/maps
precisiondocs_get_site_planGET /v1/projects/{id}/site-plan
precisiondocs_get_design_criteriaGET /v1/projects/{id}/design-criteria
precisiondocs_get_yield_scenarioGET /v1/projects/{id}/yield-scenario
precisiondocs_export_site_planPOST /v1/projects/{id}/site-plan-exports
precisiondocs_search_projectPOST /v1/projects/{id}/search
precisiondocs_create_summaryPOST /v1/projects/{id}/summaries
precisiondocs_generate_reportPOST /v1/projects/{id}/reports
precisiondocs_get_reportGET /v1/projects/{id}/reports/{job_id}
precisiondocs_list_reportsGET /v1/projects/{id}/reports
precisiondocs_list_artifactsGET /v1/projects/{id}/artifacts
precisiondocs_get_artifactGET /v1/projects/{id}/artifacts/{artifact_id}
precisiondocs_get_walletGET /v1/wallet

File uploads (POST /v1/uploads/initiate then POST /v1/uploads/{job_id}/finalize) are REST-only; the MCP tools cover URL sources.

For step-by-step setup with copyable configs, use the in-app Account -> Integrations wizard or the Help Center connector guides.

Other API topics