Planhat MCP

io.github.da-troll由 GitHub 帳號 da-troll 發布v2.1.0更新於 Oct 24, 2026

Connect Planhat CRM to Claude and other MCP clients with 60 local tools across 12 resource types.

已驗證STDIO僅桌面效率與工作流商業與電商

概覽

AI 產生的概覽

一個本機 MCP 伺服器,讓 AI 助理讀取和更新 Planhat CRM 記錄,包括公司、聯絡人、商機、工單、任務和發票。

可以做什麼
它提供 60 個本機工具,涵蓋 12 種 Planhat 資源類型:公司、聯絡人、商機、筆記、對話、使用者、資產、問題、工單、任務、授權和發票。每種資源都支援同樣的五個操作:list、get、create、update 和 delete。因此助理可以在對話中查詢客戶資訊、建立後續任務或直接修改記錄。工具帶有標準的 MCP 註解,例如 readOnlyHint 和 destructiveHint。
適用情境
當你希望 AI 用戶端直接處理 Planhat 客戶資料時使用,例如列出本季續約的客戶,或記錄後續任務。它適合想用標準 API 權杖建立直接本機連線、而不使用託管連接器的使用者。如果你不使用 Planhat,它沒有用處。
執行需求
透過 stdio 在本機執行。一鍵安裝包安裝到 Claude Desktop(僅限桌面端);手動安裝需要 Node.js 18 或更新版本。需要 Planhat API 權杖,在 Planhat 的 Settings > Service Accounts (Private Apps) > API Access Token 中建立,且需要管理員權限。安裝包中權杖儲存在系統鑰匙圈;手動安裝則寫入 .env 檔案中的 PLANHAT_TOKEN。需要連線到 Planhat API 的網路存取。
安裝前請注意
該權杖可存取你的 Planhat 客戶資料,請像對待密碼一樣保管。工具可以建立、更新和刪除記錄;選用開關 PLANHAT_READ_ONLY=1 和 PLANHAT_DISABLE_DELETE=1,或使用唯讀權杖,可限制助理能做的變更。用戶端是否在破壞性操作前提示由用戶端決定,因此開關和權杖權限才是硬性限制。同時安裝安裝包和舊的手動設定項目會導致每個工具出現兩次。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Planhat MCP,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

[Planhat MCP Logo]

Planhat MCP

[CI status] [Latest release] [Node 18 or newer] [MCP compatible] [MIT license]

Talk to your Planhat customer data in plain English.

A local Model Context Protocol server with 60 tools for reading and updating Planhat from your AI client.

[!NOTE] When hosted connector OAuth or custom connector setup gets in the way, Planhat MCP gives you a direct local connection using a standard API token. Nothing to host and no third-party service between your AI and customer data.

See it in action

You: "Which companies have licenses renewing this quarter?"

Claude: Queries Planhat through the local MCP server and returns the matching companies with their renewal details.

Ask Claude to list records, inspect customer context, create follow-up tasks, or update Planhat directly from the conversation.

Install in Claude Desktop

Download one file, double-click it, paste your token. No terminal, no config files, no code, and nothing to install first.

  1. Download the .mcpb file.
  2. Double-click the downloaded file. Claude Desktop opens an install pop-up.
  3. Review the pop-up and click Install.
  4. Create a Planhat API token if you don't have one: in Planhat, go to Settings > Service Accounts (Private Apps) > API Access Token. Admin access is required.
  5. Paste the token into the token field. It is stored in your system keychain, never in a file on disk.
  6. Optional: tick Read-only mode or Disable delete tools to limit what the AI can do.
  7. Ask Claude: "List my top 3 Planhat companies." An answer means you are done.

If double-clicking does not open Claude Desktop, use Settings > Extensions > Advanced settings > Install Extension and select the downloaded file.

Each release also includes planhat-mcp.mcpb.sha256. To verify a download on macOS or Linux, place both files in the same directory and run:

bash
shasum -a 256 -c planhat-mcp.mcpb.sha256

Switching from a manual install? Remove the old planhat entry from claude_desktop_config.json first, or you'll see two copies of every tool.

Manual install

For MCP clients other than Claude Desktop, or if you prefer running from a checkout. Requires Node.js 18 or newer.

1. Get the code and build the server:

bash
git clone https://github.com/da-troll/Planhat-MCP.git ~/planhat-mcpcd ~/planhat-mcpnpm installnpm run build

2. Add your Planhat token:

bash
cp .env.example .envopen .env        # paste your token after PLANHAT_TOKEN= and save

The token stays in that one file on your machine. Treat it like a password.

3. Register the server in your client's MCP config (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json), replacing YOUR-USERNAME:

json
{  "mcpServers": {    "planhat": {      "command": "node",      "args": ["/Users/YOUR-USERNAME/planhat-mcp/dist/server.js"]    }  }}

Restart the client and test with the same question as above.

What Claude can do with it

60 tools across 12 Planhat resource types. Every resource supports the same five verbs: list, get, create, update, delete.

ResourceWhat it is
CompaniesYour customer accounts
Contacts (end users)People at those customers
OpportunitiesSales/expansion deals
NotesLogged notes on an account
ConversationsAll logged touchpoints: emails, calls, notes, tickets
UsersYour own team members in Planhat
AssetsProducts/objects tied to a customer
IssuesBugs and feature requests
TicketsSupport tickets
TasksTo-dos and scheduled activities
LicensesRecurring revenue records
InvoicesBilling records

Claude only ever does what you ask, and the token you create controls what it can touch. A read-only token makes the whole connector read-only.

Optional hardening

Two switches cap what any connected AI can ever do, no matter what it's asked. Bundle installs get them as checkboxes in the install pop-up; manual installs add either to the .env file:

SettingEffect
PLANHAT_READ_ONLY=1Only the list/get tools exist; nothing in Planhat can be changed.
PLANHAT_DISABLE_DELETE=1Everything works except deleting records.

Every tool also carries the standard MCP annotations (readOnlyHint, destructiveHint), so clients that calibrate their permission prompts per tool (asking before destructive calls, auto-approving reads) get the right signals. Whether and when to prompt is always the client's decision; the switches above and the permissions on the Planhat token itself (see SECURITY.md) are the hard limits.

Repository layout

planhat-mcp/├── README.md                  ← you are here├── manifest.json              ← .mcpb bundle definition (one-click install)├── package.json               ← dependencies, scripts, version├── package-lock.json          ← pinned dependency versions├── tsconfig.json              ← TypeScript config├── .env.example               ← token template for manual installs├── .mcpbignore                ← what stays out of the bundle├── src/│   ├── index.ts               ← entry point: load config, serve over stdio│   ├── server.ts              ← registers tools, applies gates + annotations│   ├── tools.ts               ← all 60 tool definitions│   ├── http.ts                ← Planhat REST client│   └── env.ts                 ← .env loader for manual installs├── tests/│   ├── tools.test.ts          ← offline tests for all 60 tools│   └── http.test.ts           ← HTTP layer: timeout, errors, delete cases├── AGENTS.md                  ← handbook for AI coding agents├── CLAUDE.md → AGENTS.md      ← same file, Claude's preferred name├── LICENSE                    ← MIT├── CHANGELOG.md               ← release history├── SECURITY.md                ← token handling & reporting issues├── CONTRIBUTING.md            ← how to add tools or fix bugs└── .github/workflows/    ├── ci.yml                 ← typecheck + tests + bundle gate on every push    └── release.yml            ← GitHub release with .mcpb asset on version tags

The shipped bundle contains just five files: manifest.json, dist/server.js (one dependency-free build), assets/icon.png, LICENSE and README.md.

Troubleshooting

SymptomLikely cause & fix
Double-clicking the .mcpb does nothing, or Install is greyed outUpdate to a recent Claude Desktop; older builds predate one-click .mcpb extensions. You can also install from Settings > Extensions > Advanced > Install Extension.
Every Planhat tool appears twiceThe bundle and an old manual config entry are both installed. Remove mcpServers.planhat from claude_desktop_config.json.
Claude says it has no Planhat toolsClaude Desktop only reads its config on launch. Quit it fully, reopen, and check the JSON has no trailing commas.
HTTP 401 Unauthorized in a tool resultThe token is wrong, expired, or was rotated. Paste a fresh one.
PLANHAT_TOKEN is not setBundle installs: re-open the extension's settings and fill in the token. Manual installs: there is no .env beside the server, so repeat manual step 2.
command not found: node (manual install)Install Node.js 18 or newer, or point command at the full path to your node binary.
Tool works but returns []Usually not an error: that Planhat resource is genuinely empty for your filters.

For engineers

bash
npm install          # install dependenciesnpm test             # offline test suite (never touches the live API)npm run typecheck    # TypeScript type checkingnpm run build        # produce dist/server.jsnpm start            # run the built server over stdio

Build the one-click bundle locally with npm run build && npx -y @anthropic-ai/[email protected] pack . planhat.mcpb.

Architecture notes, API quirks, and contribution rules live in AGENTS.md and CONTRIBUTING.md. Endpoint paths were verified against the live Planhat API in July 2026. Notably, Planhat has no /notes or /activities REST endpoints; notes and tickets are /conversations under the hood (see AGENTS.md for the full story).

License

MIT. Do what you like, no warranty.

來源:README.md,提交 2011de5

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v2.1.0最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分