Skip to main content
Glama
Procore MCP Server

Procore MCP Server

Procore MCP Server

procore-mcp-server MCP server

Procore の REST API 全体を Claude などの AI アシスタントに公開する MCP サーバーです。TypeScript と Model Context Protocol SDK で構築されています。

Claude Desktop、Claude Code、および MCP 互換の任意のクライアントで動作します。

機能

ビルド時のパーサーが Procore の OpenAPI 仕様をコンパクトなカタログに変換し、すべての API 操作に対して個別の MCP ツールを自動生成します。実行時には、7 つのメタツールにより AI が任意の Procore エンドポイントを検出・呼び出しできます:

ツール

目的

procore_discover_categories

API カテゴリをエンドポイント数付きで一覧表示

procore_discover_endpoints

カテゴリ内のエンドポイントを一覧表示

procore_search_endpoints

全エンドポイントを横断検索

procore_get_endpoint_details

エンドポイントの完全なパラメータスキーマを取得

procore_api_call

任意の Procore API 呼び出しを実行

procore_get_config

現在の設定と認証状態を表示

procore_set_config

実行時設定を設定 (company_id、project_id)

Related MCP server: mcp-clickup

前提条件

  • Node.js 18 以上

  • Procore Developer Portal のアカウント

  • Authorization Code グラントタイプの OAuth アプリ

  • リダイレクト URI を http://localhost に設定

セットアップ

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

例の env ファイルをコピーして、認証情報を入力してください:

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

デフォルトでは、サーバーは 7 つの検出ツール を公開し、すべての Procore エンドポイントは procore_api_call を通じてアクセスされます。エンドポイントごとに専用ツールを登録すると、約 4.7 MB(約 120 万トークン)のツール定義が出力されます。これは現在のどのモデルのコンテキストウィンドウよりもはるかに大きいため、このサーフェスはオプトインです:

PROCORE_TOOL_MODE=all

カバレッジはどちらのモードでも同じです。異なるのは公開されるツールリストのサイズだけです。all に切り替え、v2.0.0 より前から移行する場合は、data/tool-renames.json に旧ツール名から新ツール名へのマッピングがあります。

Procore の OpenAPI 仕様ファイルを specs/combined_OAS.json に配置する必要があります。このファイルはサイズが大きい(約 54MB)ため、リポジトリには含まれていません。Procore の API ドキュメント から取得できます。

カタログをビルドし、TypeScript をコンパイルします:

npm run build

Procore で認証します(OAuth のためブラウザが開きます):

npm run auth

サーバーを起動します:

npm start

Claude Desktop の設定

Claude Desktop の設定(~/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 の設定

プロジェクトルートの .mcp.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"
      }
    }
  }
}

プロジェクト構造

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)

仕組み

  1. ビルド時: scripts/generate-catalog.ts が約 54MB の Procore OpenAPI 仕様(3,155 操作)を解析し、コンパクトな data/catalog.json と、data/endpoint-details/ 内の個別エンドポイント詳細ファイルを生成します。次に scripts/generate-tools-manifest.ts が、API 操作ごとに 1 つの名前付き MCP ツールを持つツールマニフェストを生成します。同じパスの旧バージョンの重複をまとめた後、合計 2,929 個になります。

    生成された各ツールには、操作対象、使用すべきタイミング、最初に解決すべき親 ID、返す内容、失敗時の挙動をカバーする構造化された説明が含まれます。Procore が非推奨としたエンドポイントは、説明に廃止日と (Deprecated) タイトルが登録されます。インタラクティブな /oauth/* エンドポイントはツールとして登録されません(npm run auth がそのフローを担当します)が、procore_api_call を通じて引き続きアクセスできます。

  2. 認証: npm run auth を一度実行して、ブラウザで OAuth フローを完了します。トークンは ~/.procore-mcp/tokens.json に保存され、期限切れ時に自動更新されます。

  3. 実行時: MCP サーバーはカタログを読み込み、7 つの検出ツールを登録します(PROCORE_TOOL_MODE=all の場合は完全なエンドポイント別サーフェスも登録)。AI アシスタントがツールを呼び出すと、サーバーはそれを正しい Procore API エンドポイントにマッピングし、認証ヘッダーを注入し、レート制限とページネーションを処理して、レスポンスを返します。

インスピレーション

毎日 Procore を使っている建設エンジニアの彼女を助けるために作られました。

ライセンス

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