Skip to main content
Glama
Procore MCP Server

Procore MCP Server

Procore MCP Server

procore-mcp-server MCP server

MCP-Server, der die vollständige Procore-REST-API für KI-Assistenten wie Claude bereitstellt. Entwickelt mit TypeScript und dem Model Context Protocol SDK.

Funktioniert mit Claude Desktop, Claude Code und jedem MCP-kompatiblen Client.

Was er tut

Ein Parser zur Build-Zeit konvertiert Procores OpenAPI-Spezifikation in einen kompakten Katalog und generiert anschließend automatisch individuelle MCP-Tools für jede API-Operation. Zur Laufzeit ermöglichen 7 Meta-Tools der KI, jeden Procore-Endpunkt zu entdecken und aufzurufen:

Tool

Zweck

procore_discover_categories

API-Kategorien mit Endpunkt-Anzahl auflisten

procore_discover_endpoints

Endpunkte in einer Kategorie auflisten

procore_search_endpoints

Volltextsuche über alle Endpunkte

procore_get_endpoint_details

Vollständiges Parameterschema für einen Endpunkt abrufen

procore_api_call

Beliebigen Procore-API-Aufruf ausführen

procore_get_config

Aktuelle Konfiguration und Auth-Status anzeigen

procore_set_config

Laufzeitkonfiguration festlegen (company_id, project_id)

Related MCP server: mcp-clickup

Voraussetzungen

  • Node.js 18+

  • Ein Procore Developer Portal-Konto

  • Eine OAuth-App mit dem Grant-Typ Authorization Code

  • Setzen Sie Ihre Redirect-URI auf http://localhost

Einrichtung

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

Kopieren Sie die Beispiel-Env-Datei und füllen Sie Ihre Zugangsdaten aus:

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

Standardmäßig stellt der Server die 7 Discovery-Tools bereit, und jeder Procore-Endpunkt wird über procore_api_call erreicht. Die Registrierung eines dedizierten Tools pro Endpunkt würde stattdessen etwa 4,7 MB (~1,2 Mio. Tokens) an Tool-Definitionen erzeugen – mehr als das Kontextfenster jedes aktuellen Modells – daher ist diese Oberfläche opt-in:

PROCORE_TOOL_MODE=all

Die Abdeckung ist in beiden Modi identisch; nur die Größe der beworbenen Tool-Liste unterscheidet sich. Wenn Sie auf all umstellen und von vor v2.0.0 migrieren, finden Sie in data/tool-renames.json die Zuordnung von alten zu neuen Tool-Namen.

Sie benötigen Procores OpenAPI-Spezifikationsdatei unter specs/combined_OAS.json. Diese Datei ist aufgrund ihrer Größe (~54 MB) nicht im Repository enthalten. Sie können sie aus Procores API-Dokumentation beziehen.

Katalog erstellen und TypeScript kompilieren:

npm run build

Bei Procore authentifizieren (öffnet Browser für OAuth):

npm run auth

Server starten:

npm start

Claude Desktop-Konfiguration

Fügen Sie zu Ihrer Claude Desktop-Konfiguration hinzu (~/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-Konfiguration

Fügen Sie .mcp.json im Stammverzeichnis Ihres Projekts hinzu:

{
  "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"
      }
    }
  }
}

Projektstruktur

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
  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)

So funktioniert es

  1. Build-Zeit: scripts/generate-catalog.ts parst die ~54 MB große Procore-OpenAPI-Spezifikation (3.155 Operationen) und erzeugt einen kompakten data/catalog.json sowie einzelne Endpunkt-Detaildateien in data/endpoint-details/. scripts/generate-tools-manifest.ts generiert anschließend ein Tools-Manifest mit einem benannten MCP-Tool pro API-Operation – insgesamt 2.929, nachdem Duplikate älterer Versionen desselben Pfads zusammengeführt wurden.

    Jedes generierte Tool trägt eine strukturierte Beschreibung, die abdeckt, worauf es wirkt, wann man es verwenden sollte, welche übergeordneten IDs zuerst aufgelöst werden müssen, was es zurückgibt und wie es fehlschlägt. Endpunkte, die Procore als veraltet markiert hat, werden mit ihrem Sunset-Datum in der Beschreibung und einem (Deprecated)-Titel registriert. Die interaktiven /oauth/*-Endpunkte werden nicht als Tools registriert – npm run auth übernimmt diesen Ablauf – bleiben aber über procore_api_call erreichbar.

  2. Auth: Führen Sie npm run auth einmal aus, um den OAuth-Ablauf in Ihrem Browser abzuschließen. Tokens werden unter ~/.procore-mcp/tokens.json gespeichert und bei Ablauf automatisch erneuert.

  3. Laufzeit: Der MCP-Server lädt den Katalog und registriert die 7 Discovery-Tools (plus die vollständige Per-Endpunkt-Oberfläche, wenn PROCORE_TOOL_MODE=all gesetzt ist). Wenn ein KI-Assistent ein Tool aufruft, ordnet der Server es dem korrekten Procore-API-Endpunkt zu, fügt Auth-Header ein, behandelt Rate Limits und Paginierung und gibt die Antwort zurück.

Inspiration

Entwickelt, um meiner Freundin zu helfen, einer Bauingenieurin, die Procore täglich nutzt.

Lizenz

MIT

Available Tools

7 tools
procore_api_callExecute 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_api_call 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_api_call — api_call 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_api_call 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.8/5.0

    Scored across 7 tools

    Disambiguation5/5

    Each tool has a clearly distinct role: browse categories, search endpoints, get endpoint details, execute an API call, and read/write config. Even discover_endpoints and search_endpoints both return endpoints, but their descriptions frame them as browse vs. keyword lookup, so an agent should not misselect.

    Naming Consistency4/5

    All tools share a procore_ snake_case prefix and most follow a verb_noun pattern (discover_categories, get_config, search_endpoints). The one outlier is procore_api_call, which reads as noun_noun rather than call_api, but it remains clear and does not create real confusion.

    Tool Count5/5

    Seven tools is well-scoped for a generic API-access server: discovery, search, schema inspection, execution, and config get/set each earn their place. There is no redundancy and no obvious missing companion tool.

    Completeness5/5

    The tool set fully covers its stated discover -> detail -> call workflow, with search added for faster lookup and config tools for context switching. Since procore_api_call can reach every Procore endpoint, no dedicated per-resource tools are needed for the server's purpose.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers