Skip to main content
Glama
Procore MCP Server

Procore MCP Server

Procore MCP Server

procore-mcp-server MCP server

MCP server that exposes the full Procore REST API to AI assistants like Claude. Built with TypeScript and the Model Context Protocol SDK.

Works with Claude Desktop, Claude Code, and any MCP-compatible client.

What it does

A build-time parser converts Procore's OpenAPI spec into a compact catalog, then auto-generates individual MCP tools for every API operation. At runtime, 7 meta-tools let the AI discover and call any Procore endpoint:

Tool

Purpose

procore_discover_categories

List API categories with endpoint counts

procore_discover_endpoints

List endpoints in a category

procore_search_endpoints

Full-text search across all endpoints

procore_get_endpoint_details

Get full parameter schema for an endpoint

procore_call_api

Execute any Procore API call

procore_get_config

Show current config and auth status

procore_set_config

Set runtime config (company_id, project_id)

Renamed: procore_call_api was called procore_api_call before. Calls to the old name still work: the server routes them to procore_call_api and logs a deprecation notice to stderr. The old name is no longer listed, though. If you pre-approved it in a client permission list (for example mcp__procore__procore_api_call in Claude Code's allowedTools), add mcp__procore__procore_call_api there too.

Related MCP server: mcp-clickup

Prerequisites

  • Node.js 20+ (22 or 24 LTS recommended; CI tests 20, 22 and 24)

  • A Procore Developer Portal account

  • An OAuth app with Authorization Code grant type

  • Set your redirect URI to http://localhost

  • (Alternative, for unattended use) a Developer Managed Service Account app; see Service-account mode

Setup

git clone https://github.com/TylerIlunga/procore-mcp-server.git
cd procore-mcp-server
npm install

Copy the example env file and fill in your credentials:

cp .env.example .env
PROCORE_CLIENT_ID=your_client_id
PROCORE_CLIENT_SECRET=your_client_secret
PROCORE_COMPANY_ID=your_company_id

PROCORE_ENV selects the Procore environment:

Value

Auth host

API host

production (default)

login.procore.com

api.procore.com

sandbox

login-sandbox.procore.com

sandbox.procore.com

sandbox-monthly

login-sandbox-monthly.procore.com

api-monthly.procore.com

If it is unset the server uses production, so set it explicitly. The value is case-insensitive; any other value is rejected at startup rather than silently falling back to production. The server logs the resolved environment and API host on start.

PROCORE_ENV=sandbox

Service-account (client credentials) mode

To run unattended with a Procore Developer Managed Service Account (DMSA) app instead of a user login, set:

PROCORE_GRANT_TYPE=client_credentials

There is no npm run auth step in this mode: the server requests an app-level token at startup (so bad credentials fail immediately), keeps it in memory only, and requests a new one when it expires. Nothing is written to ~/.procore-mcp/tokens.json. The token acts as the service account, so data visibility is whatever that account has been granted in the company it is installed in, not any individual user's. The default is authorization_code, unchanged.

By default the server exposes the 7 discovery tools, and every Procore endpoint is reached through procore_call_api. Registering a dedicated tool per endpoint instead emits roughly 4.7 MB (~1.2M tokens) of tool definitions — more than any current model's context window — so that surface is opt-in:

PROCORE_TOOL_MODE=all

Coverage is identical in both modes; only the size of the advertised tool list differs. If you switch to all and are migrating from before v2.0.0, see data/tool-renames.json for the old -> new tool name map.

You'll need Procore's OpenAPI spec file placed at specs/combined_OAS.json. This file is not included in the repo due to its size (~64MB). Download it from the Procore Developer Portal while signed in; there is no public download URL. You only need it to regenerate the catalog: the generated data/ files are committed, so npm start works without it.

Build the catalog and compile TypeScript:

npm run build

Authenticate with Procore (opens browser for OAuth):

npm run auth

Start the server:

npm start

Claude Desktop configuration

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "procore": {
      "command": "node",
      "args": ["/absolute/path/to/procore-mcp-server/dist/src/index.js"],
      "env": {
        "PROCORE_CLIENT_ID": "your_client_id",
        "PROCORE_CLIENT_SECRET": "your_client_secret",
        "PROCORE_COMPANY_ID": "your_company_id"
      }
    }
  }
}

Claude Code configuration

Add to .mcp.json in your project root:

{
  "mcpServers": {
    "procore": {
      "command": "node",
      "args": ["/absolute/path/to/procore-mcp-server/dist/src/index.js"],
      "env": {
        "PROCORE_CLIENT_ID": "your_client_id",
        "PROCORE_CLIENT_SECRET": "your_client_secret",
        "PROCORE_COMPANY_ID": "your_company_id"
      }
    }
  }
}

Project structure

src/
  auth/       OAuth token exchange, refresh, storage
  api/        HTTP client with auth, rate limits, retries
  catalog/    Endpoint catalog loading, search, filtering
  tools/      MCP tool handlers and registration
scripts/
  generate-catalog.ts          Parse OAS into catalog
  generate-tools-manifest.ts   Generate per-endpoint MCP tools
  catalog/, manifest/          Rules behind the two generators
  validate-catalog.ts          Validate catalog integrity
data/         Build output (committed): catalog.json, endpoint details, tools manifest
specs/        Source OAS file (gitignored — too large for the repo)

How it works

  1. Build time: scripts/generate-catalog.ts parses the ~64MB Procore OpenAPI spec (3,391 operations as of 2026-11-21) and produces a compact data/catalog.json plus individual endpoint detail files in data/endpoint-details/. scripts/generate-tools-manifest.ts then generates a tools manifest with one named MCP tool per API operation — 3,151 in total, after collapsing older-version duplicates of the same path.

    Each generated tool carries a structured description covering what it acts on, when to reach for it, which parent ids to resolve first, what it returns, and how it fails. Endpoints Procore has deprecated are registered with their sunset date in the description and a (Deprecated) title. The interactive /oauth/* endpoints are not registered as tools — npm run auth owns that flow — but remain reachable through procore_call_api.

  2. Auth: Run npm run auth once to complete the OAuth flow in your browser. Tokens are saved to ~/.procore-mcp/tokens.json and auto-refresh when expired.

  3. Runtime: The MCP server loads the catalog and registers the 7 discovery tools (plus the full per-endpoint surface when PROCORE_TOOL_MODE=all). When an AI assistant calls a tool, the server maps it to the correct Procore API endpoint, injects auth headers, handles rate limits and pagination, and returns the response.

License

MIT

Available Tools

7 tools
procore_call_apiExecute Any Procore API CallA
Destructive

Executes any Procore REST API call. This is the only tool here that reaches Procore and the only one that can change data — resolve the exact method, path, and parameters with procore_get_endpoint_details first. WRITES ARE REAL: DELETE permanently removes the record, POST creates one, and PATCH/PUT overwrite fields, so confirm the target id before calling and prefer a GET to verify it exists. Handles OAuth from the saved tokens, substitutes {placeholders} from path_params, and rewrites double underscores in query keys into brackets (filters__status becomes filters[status]). company_id and project_id fall back to whatever procore_set_config holds when the path needs them and you omit them. Returns the parsed JSON response together with pagination and rate-limit metadata. Failures come back as an error payload carrying the HTTP status — commonly 401 when the token has expired, 403 without tool permission, 404 when an id does not resolve, 422 when the body fails validation, and 429 when the rate limit is exhausted. Step 4 of the workflow; this reaches every Procore endpoint, including any not exposed as a dedicated tool.

Inputs: path (required), method (required), body, page, +4 more.

procore_discover_categoriesDiscover Procore API CategoriesA
Read-onlyIdempotent

Lists Procore's API surface as a Category > Module tree with an endpoint count for each. Start here when you do not yet know which part of Procore holds the data you need; if you already know the resource by name ('RFI', 'budget'), procore_search_endpoints gets you there in one step instead of three. The category and module names returned are the exact values procore_discover_endpoints expects. Takes no arguments and returns a JSON object. Reads the catalog bundled with this server, so it makes no Procore request and needs no authentication — it cannot fail with 401/403 and costs no rate limit. Step 1 of the discover -> detail -> call workflow.

Inputs: no named parameters.

procore_discover_endpointsDiscover Endpoints in a CategoryA
Read-onlyIdempotent

Lists the Procore endpoints inside one category or module, optionally narrowed by a summary substring or HTTP method. Use it after procore_discover_categories to enumerate a focused area; prefer procore_search_endpoints when you have a keyword but no category. Every argument is optional, but omitting all of them returns the entire ~3,100-endpoint catalog, so pass at least a category or a search term. Returns a JSON array of {operationId, summary, method, path}; feed an operationId to procore_get_endpoint_details. Filters that match nothing return an empty array, not an error. Reads the bundled catalog: no Procore request, no authentication, no rate-limit cost. Step 2 of the workflow.

Inputs: module, search, category, method_filter.

procore_get_configShow Server ConfigurationA
Read-onlyIdempotent

Reports this server's current state: whether Procore OAuth tokens are present and still valid, the default company_id, and the active project_id that procore_call_api substitutes when you omit those parameters. Check this first when a call fails with 401 or 403, or to confirm which project subsequent calls will target before running a write. Never returns token values or the client secret — only whether credentials are present. Takes no arguments and returns a JSON object. Reads local process state, so it makes no Procore request. Pair with procore_set_config to change any of it.

Inputs: no named parameters.

procore_get_endpoint_detailsGet Full Endpoint DetailsA
Read-onlyIdempotent

Returns the complete parameter schema for one Procore endpoint: every path, query, and body field with its type and required flag, plus the response shape. Call this after discovery and before procore_call_api — it needs exact parameter names, and guessing them is the most common cause of a rejected request. Takes the operationId string that procore_discover_endpoints and procore_search_endpoints return; an unrecognized operation_id comes back as a not-found message rather than an error. Reads the bundled catalog: no Procore request, no authentication, no rate-limit cost. Step 3 of the workflow.

Inputs: operation_id (required).

procore_search_endpointsFull-Text Search Across EndpointsA
Read-onlyIdempotent

Searches every Procore endpoint's summary, tag, and path for a term and returns the matches ranked by relevance. This is the fastest way in when you already know roughly what you want ('punch list', 'submittal', 'budget line item'); reach for procore_discover_categories instead when you want to browse the API surface rather than search it. Returns a JSON array of {operationId, summary, method, path}; feed an operationId to procore_get_endpoint_details to get its parameters. A term with no matches returns an empty array, so retry with a broader or singular form before concluding the endpoint does not exist. Reads the bundled catalog: no Procore request, no authentication, no rate-limit cost.

Inputs: query (required).

procore_set_configSet Runtime Configuration ValueA
Idempotent

Sets the default company_id or project_id that later procore_call_api requests use when the path needs one and you omit it. Use it to switch project context mid-session instead of restarting the server, then call procore_get_config to confirm what took effect. Only 'company_id' and 'project_id' are accepted; both are coerced to integers, and a non-numeric value is reported back as a message rather than stored. The change lives in memory for this server process only — it is never written to disk and is lost on restart. Setting the same value twice is a no-op, and nothing in Procore is modified: this only changes which ids this server fills in for you. Returns a confirmation plus the full updated configuration.

Inputs: key (required), value (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.6/5.0

    Scored across 7 tools

    Disambiguation4/5

    Most tools have clearly distinct roles in a discovery-to-call workflow, and the config get/set pair is unambiguous. The main overlap is between procore_discover_endpoints and procore_search_endpoints, since both can return endpoint lists and discover_endpoints accepts a summary substring, though the descriptions give clear guidance on when to use each.

    Naming Consistency5/5

    All tools use the same procore_ prefix and snake_case verb_noun convention. Names are predictable and readable throughout.

    Tool Count5/5

    Seven tools is well-scoped for a generic Procore API gateway: discovery, schema lookup, execution, and configuration each have a clear place. No tool feels redundant or missing from the intended workflow.

    Completeness4/5

    The set covers the full discovery -> detail -> call lifecycle and procore_call_api can reach every Procore endpoint, so domain coverage is effectively broad. The main gap is credential lifecycle management: there is no tool to set or refresh OAuth tokens, only to inspect whether they exist.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers