PrecisionDocs

MCP & Connectors - Developer Docs

The remote MCP server, and how its tools map to REST operations.

How do I connect over MCP?

For Claude, ChatGPT, Claude Code, or Codex, start with Account -> Integrations. Choose your AI and follow the guided setup. The technical reference below is for custom integrations.

One MCP endpoint wraps the whole API: https://mcp.precisiondocs.ai/mcp, Streamable HTTP with OAuth 2.1 (dynamic client registration, PKCE S256, refresh-token rotation). The client opens your browser, you approve on the PrecisionDocs consent page, and the client holds a token scoped to your user and organization. No pd_live_ key is involved; the endpoint rejects one.

ClientSetup
Claude Codeclaude mcp add --scope user --transport http precisiondocs https://mcp.precisiondocs.ai/mcp, then /mcp -> precisiondocs -> Authenticate
OpenAI Codexcodex mcp add precisiondocs --url https://mcp.precisiondocs.ai/mcp, then codex mcp login precisiondocs
Gemini CLIgemini mcp add --scope user --transport http precisiondocs https://mcp.precisiondocs.ai/mcp, then /mcp auth precisiondocs (the command writes {"url": "https://mcp.precisiondocs.ai/mcp", "type": "http"} under mcpServers.precisiondocs in settings.json)
Cursor{"mcpServers":{"precisiondocs":{"url":"https://mcp.precisiondocs.ai/mcp"}}} in mcp.json, then sign in when Cursor asks
Claude app (claude.ai, Claude Desktop)Customize -> Connectors -> Add custom connector -> paste the URL -> Add -> Connect (Team and Enterprise: an Owner adds it in Organization settings -> Connectors first)
ChatGPTPlugins -> + -> Add custom MCP server -> paste the URL -> OAuth -> Create as a plugin (no such option: Developer mode under Settings -> Security and login)
Any other MCP clientThe URL alone. A client that only runs local stdio servers: npx -y --before=2026-10-15 mcp-remote@0.15.1 https://mcp.precisiondocs.ai/mcp (the standard mcp-remote bridge, same browser sign-in)

Discovery for a custom client: /.well-known/oauth-protected-resource/mcp names the authorization server, /.well-known/oauth-authorization-server lists authorization_endpoint, token_endpoint, registration_endpoint and revocation_endpoint. Disconnect a client any time from Account -> Integrations -> Connected apps; that revokes its token and refresh token immediately.

A client on a computer with no browser (a server or a container): open the authorization link it prints on any device with a browser, and approve. That device then fails to load the client's local address (http://127.0.0.1:...); copy that whole address, which holds code=, back to the client (often a --code option or a paste prompt). The code works once, within ten minutes, and only for the client that asked for it.

Use MCP when the client prefers tool calls. Use the OpenAPI spec when the client imports actions, connectors or functions natively.

A long agent turn never times out. precisiondocs_ask_agent submits the turn asynchronously (wait: false): the API answers 202 with a job_id, the turn runs on a worker, and the tool polls GET /v1/projects/{id}/messages/{job_id} for up to 45 seconds before handing the model that handle to keep polling, so the call never hits the proxy's read timeout. REST callers get the same contract by sending wait: false; wait: true still runs the turn synchronously in one request. If a transport error ever still says the turn may be running, do not re-ask (a second ask would charge a second turn): list the project messages and read the newest turn.

Switch models by asking: Tell your connected assistant "use Claude Sonnet 5.5" or "switch to Auto". It reads precisiondocs_get_models and passes the approved model_id on subsequent precisiondocs_ask_agent calls. Auto is the default whenever no explicit choice is sent. A preference change itself does not run a paid turn; the assistant keeps it within your current conversation.

MCP tools and their REST equivalents: every MCP tool calls one REST operation. precisiondocs_get_docs with no section lists every operation with the tool that calls it, its scope and its cost, and in the OpenAPI spec each operation names its tool under x-pd-mcp.tool. Over MCP, precisiondocs_add_source calls POST /v1/projects/{id}/sources, or POST /v1/projects/{id}/gis-sources when scope is given; precisiondocs_route calls POST /v1/route and returns the tools a request needs in order; and precisiondocs_get_docs makes no REST call for a workflow guide (section set to a guide id such as maps-and-exports).

REST-only, each for a stated reason precisiondocs_get_docs repeats: PATCH /v1/projects/{id}/documents/{document_id} (no MCP read lists uploaded-document ids, and a display rename changes nothing an answer reads). Deprecated, REST-only while awaiting removal, with Deprecation and Sunset headers on routed answers: GET /v1/projects/{id}/gis-exports/{artifact_id} (use precisiondocs_get_deliverable and precisiondocs_create_download_link), POST /v1/projects/{id}/summaries (use precisiondocs_ask_agent), GET /v1/projects/{id}/reports (use GET /v1/projects/{project_id}/runs and precisiondocs_list_deliverables), GET /v1/projects/{id}/reports/{job_id} (use precisiondocs_get_run), GET /v1/projects/{id}/artifacts (use precisiondocs_list_deliverables) and GET /v1/projects/{id}/artifacts/{artifact_id} (use precisiondocs_get_deliverable and precisiondocs_create_download_link). A request refused before routing by the per-address default limit carries neither header.

For guided setup, log in to PrecisionDocs and choose your AI. The app provides the current buttons and instructions. For help, see Connect your AI.

How do I install the PrecisionDocs skill for Claude?

The PrecisionDocs Agent Skill teaches Claude the workflows behind the MCP tools: which tool answers what and in what order, what needs your confirmation, what spends credits, and every map and export PrecisionDocs makes, with how to put maps into a document. It is generated from the same source as the MCP server's own instructions, so the two never disagree, and it drives the connector above, which must be connected too.

ClientInstall
Claude Code (macOS, Linux, Git Bash)curl -fsSL https://precisiondocs.ai/skills/precisiondocs.zip -o precisiondocs-skill.zip && unzip -o precisiondocs-skill.zip -d ~/.claude/skills && rm precisiondocs-skill.zip
Claude Code (Windows PowerShell)Invoke-WebRequest https://precisiondocs.ai/skills/precisiondocs.zip -OutFile precisiondocs-skill.zip; Expand-Archive -Force precisiondocs-skill.zip "$HOME/.claude/skills"; Remove-Item precisiondocs-skill.zip
Claude app (claude.ai, Claude Desktop)Download precisiondocs.zip, then open Settings, find Skills, choose Upload skill and pick the zip

Claude loads the skill when a request fits it. Without the skill the same guides are one call away inside MCP: precisiondocs_get_docs with section set to a guide id (for example maps-and-exports), or with no section for the list of guides and the full API index.

Can I address PrecisionDocs by my agent name in Claude?

Yes. Name your agent under Account -> Profile -> Agent personality. Every MCP session you connect opens its server instructions with that name (for example: The user calls PrecisionDocs "Atlas". A request to Atlas is a request to use these tools.) and names it on precisiondocs_ask_agent, so asking Claude "Atlas, what are the setbacks on my Maple Street project?" reaches PrecisionDocs instead of being answered from Claude's general knowledge.

The name is kept to plain name characters, up to 50. A name that already means Claude or any assistant (Claude, ChatGPT, Gemini, Copilot, Assistant, AI, Agent, Bot and similar) is not used for routing, because it would send your ordinary requests into paid agent turns; pick a distinct name such as Atlas. Claude reads the instructions when it connects, so after a rename start a new Claude session to pick it up.

Other API topics

PrecisionDocs
Reload page