Appearance
MCP Server
The Plan Count MCP server lets an AI assistant work with your projects directly. MCP (the Model Context Protocol) is the open standard assistants use to call tools. Once connected, the assistant can read drawings, place symbols, set up pages, manage rules, zones and measurements, read the takeoff, and make marked-up PDFs, using the same operations as the REST API.
Server URL: https://api.plancount.ai/mcp
The server is a remote, stateless HTTP server. It has 35 tools. What the assistant can do depends on the permissions you give it, and everything it does is limited to one workspace.
Connect by signing in
If your assistant supports remote MCP servers with sign-in, this is the easiest way. You never copy a key.
- In your assistant, add a custom connector or remote MCP server, and enter the URL
https://api.plancount.ai/mcp. Where this is and what it is called depends on the assistant; look for its settings for connectors, integrations or MCP servers. - The assistant discovers how to sign in from the URL by itself. Your browser opens a Plan Count screen. Sign in if you are not already.
- The screen shows the app's name and the web address it will return to. Check that it is the app you meant to connect. If the app runs on your own computer, the screen says so.
- Choose the workspace the app may use: your personal workspace, or a team you have a seat on.
- Tick the permissions to give it. Reading and editing are ticked by default. Upload and AI are not, because they spend credits.
- If you ticked Upload, you can set a daily credit limit. It counts the credits the app spends in the last 24 hours. Leave it on Unlimited for no cap.
- Click Allow. The assistant now has access. (Click Deny to refuse.)
Plan Count does not run a special flow for any particular assistant. Any client that follows the MCP authorization standard (OAuth 2.1 with PKCE, with automatic client registration) can connect this way.
The access a connected app gets lasts until you remove it. To disconnect it, open Account, find the app under Connected apps and click Disconnect. It stops working at once. See overview.
Connect with an API key
If your assistant lets you set a request header for an MCP server, or you are writing your own client, use a key instead:
- Create a key with the scopes the work needs.
- Point the client at
https://api.plancount.ai/mcpand sendAuthorization: Bearer pc_live_YOUR_KEYwith every request.
A key and a signed-in connection behave identically. Each tool checks the scope it needs before it reads anything.
What the assistant can do
Every tool belongs to one workspace, the one the key or connection was made for. A tool called without its scope returns the error INSUFFICIENT_SCOPE, and nothing is changed or read.
Argument names are in snake_case (project_id, pdf_id, expected_version). Operations inside batch tools (ops) use the same camelCase field names as the REST API (pdfId, ruleId).
Projects and drawings
| Tool | Scope | What it does |
|---|---|---|
list_projects | read | Lists the workspace's projects, newest first |
get_project | read | One project with its drawings and each page's size and rotation |
create_project | edit | Creates an empty project with the default rules of a drawing profile. Free |
update_project | edit | Renames, describes, changes the status of, archives or unarchives a project. Free |
duplicate_project | edit | Copies a project with its drawings and everything on them. Free |
delete_project | edit | Deletes a project for good. Needs confirm repeating the project id |
remove_pdf | edit | Removes a drawing and everything on it. Needs confirm repeating the drawing id |
reorder_pdfs | edit | Sets the order of a project's drawings |
estimate_upload_cost | read | What uploading a number of pages costs, and whether the workspace can pay |
upload_drawing | upload | Uploads a PDF, sent as base64, as a new project or into an existing one. Spends credits |
Reading drawings
| Tool | Scope | What it does |
|---|---|---|
get_page_text | read | The text on a page with positions |
get_page_image | read | A page as a PNG image, with its scale |
Symbols
| Tool | Scope | What it does |
|---|---|---|
list_symbols | read | Symbols with box, centre, type, label and rule |
place_symbols | edit | Places symbols, each centred on a point, under a rule |
move_symbols | edit | Moves symbols to new centres |
remove_symbols | edit | Removes symbols from the counts (they can be restored in the app) |
get_counts | read | The counts as the app shows them |
get_takeoff | read | Totals, zones with areas, and line and ring lengths. Free |
Page setup, rules, zones, lines, annotations and legends
| Tool | Scope | What it does |
|---|---|---|
get_page_setup | read | Scales, pages, excluded pages and hidden labels |
update_page_setup | edit | Excludes or includes pages, sets or clears scales, hides or shows labels |
list_rules | read | Detection rules and the drawing profile |
update_rules | edit | Creates, changes, enables, disables and deletes rules; sets the drawing profile. Runs detection again when matching changes |
list_zones | read | Zones with areas |
update_zones | edit | Creates, changes and deletes zones |
list_linear | read | Linear rules, lines and rings with lengths and units |
update_linear | edit | Creates, changes and deletes linear rules, lines and rings |
list_annotations | read | Cloud boxes, text notes and highlights |
update_annotations | edit | Creates, changes and deletes annotations |
list_legends | read | Legend placement for every page |
update_legends | edit | Sets or resets legend placement |
The symbol tools take their own argument shapes: place_symbols takes symbols (each with pdf_id, page, rule_id, center and an optional label), move_symbols takes moves (each with id and center) and remove_symbols takes ids.
The update_ tools in this section are free, apply all or nothing, and take ops (1 to 500 operations) and an optional expected_version. The operations are the ones described in Project Contents.
Exports and credits
| Tool | Scope | What it does |
|---|---|---|
estimate_export | read | What an export would cost, without making it |
create_export | upload | Makes a takeoff CSV or marked-up PDF. May spend credits |
list_exports | read | Exports that can still be downloaded |
get_credits | read | The workspace's balance and what is available now |
list_credit_transactions | read | Recent credit transactions |
upload_drawing and create_export take max_credits and idempotency_key, which work as described in REST API. Good assistants call estimate_export or estimate_upload_cost first and pass max_credits.
Exported files
create_export returns the export's details and, when the file is small enough, the file itself, attached to the answer. When it is not, the answer says the export was made and charged and gives its id, a download address and the command to fetch it with the command-line tool. It is not an error, and the assistant should not make the export again. To get the file, download it with the CLI or the REST API. A made export stays downloadable for 7 days, free.
Example conversation
This is an illustration of a session, with made-up numbers. The assistant's tool calls are shown in brackets; depending on your assistant you may or may not see them.
You: Count the lights on my Level 1 drawing, leave out the plant room, and give me a marked-up PDF.
Assistant: [list_projects] I found a project called Level 1 with one 2-page drawing. [get_page_setup, get_counts] There are 9 symbols detected. Where is the plant room?
You: Top right of page 1, roughly the rectangle from x 550 to 700 and y 250 to 350.
Assistant: [get_page_image] I can see it on the page. [update_zones, with an EXCLUSION zone] I added an exclusion zone called "Plant room". It removes one symbol. [get_counts] The total is now 8: 7 lights and 1 switch. [estimate_export] A marked-up PDF of page 1 costs 1 credit and you have 17. Shall I go ahead?
You: Yes.
Assistant: [create_export, with max_credits 1] Done. It cost 1 credit, leaving 16. The file is attached.
Notice what the assistant did not do: it asked before spending credits, and it capped the spend.
Errors
A tool that fails returns an error result with the same shape as the REST API's: { "error": { "code", "message", "details"? } }. The codes are the REST API's (see Errors), plus:
| Code | Meaning |
|---|---|
FILE_TOO_LARGE_FOR_MCP | The PDF is too large to send in a tool call. Upload it with the command-line tool or the REST API |
IMAGE_TOO_LARGE_FOR_MCP | The page image is too large to return. details.suggestedDpi is a lower dpi that fits (null when none does) |
Errors that say to wait include retryAfterSeconds.
Before a tool runs, the server can also refuse a request as a JSON-RPC error whose data.code is MCP_TOO_MANY_REQUESTS (too many of your requests in flight), MCP_BUSY (wait for Retry-After) or BODY_TIMEOUT (an upload arrived too slowly; use the REST API).
Large files
A tool call carries the whole file as text, so very large PDFs do not fit. For large uploads, use the command-line tool or the REST API, then let the assistant carry on with the project. Page images are drawn at 36 to 200 dpi, and large pages may need a lower dpi.
Limits
- Each key or connection can make 120 requests a minute, counting REST and MCP together.
- The server does not keep sessions, and each request carries one message. A request that packs several messages together (a JSON array) is refused. Separate requests can run in parallel.
- Only
POSTis supported on the server URL.
