Castle MCP by usefulapi

io.usefulapi由 usefulapi.io 發布官方發布者v1.39.2更新於 Nov 14, 2026

Investigate security events and manage the allow/deny lists an analyst acts on.

發布方自己的服務:Ably MCP by usefulapi

已驗證Streamable HTTP可網頁執行安全與監控資料與分析

概覽

AI 產生的概覽

託管的 Castle 伺服器,讓助理調查安全事件並管理分析師所用的允許/拒絕名單。

可以做什麼
  • 檢視事件欄位結構,了解可篩選與可分組的欄位
  • 依 IP、裝置或國家搜尋並分組登入、註冊、交易等安全事件
  • 搜尋、讀取並統計允許/拒絕名單及其項目
  • 建立與重新命名名單,新增項目、修改備註、封存或還原項目
  • 查看當月用量、提出功能需求,以及升級或取消付費方案
適用情境
適合分析師用自然語言查詢 Castle 安全事件、找出某次異常高峰中佔多數的 IP、裝置或國家,或不必離開對話就能維護被封鎖的 IP、電子郵件或裝置名單。
執行需求
透過 streamable HTTP 連線的遠端 MCP 端點,無需本機安裝。只需填入 URL,以 OAuth 登入,首次連線時輸入 Castle 憑證,憑證依使用者儲存。用戶端設定中不要加入 API 金鑰或 Authorization 標頭。
安裝前請注意
寫入類工具會改變線上政策:新增名單項目可能封鎖某個 IP 或電子郵件,封存項目會使其不再比對,執行建立、更新、封存或還原前應先確認。付費方案會產生費用(Pro 與 Pro+ 按月或按年,透過結帳連結付款),升級會立即收取差額,取消當期不退費。免費額度為每月 50 次工具呼叫。

安裝

在 SourceWeft 中

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

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.usefulapi%2Fcastle/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "castle-by-usefulapi": {
      "type": "http",
      "url": "https://castle.usefulapi.io/mcp"
    }
  }
}

README

Castle MCP by usefulapi

Investigate security events and manage the allow/deny lists an analyst acts on. Hosted, no local install.

Live endpoint: https://castle.usefulapi.io/mcp · Homepage: https://usefulapi.io

Connect

  • Claude (claude.ai, Desktop): open Customize → Connectors, click + Add → Add custom connector, and paste https://castle.usefulapi.io/mcp.
  • Claude Code: claude mcp add --transport http castle https://castle.usefulapi.io/mcp, then run /mcp to log in.
  • VS Code: Add to VS Code.
  • Cursor and other clients: add the URL as a remote MCP server:
json
{  "mcpServers": {    "castle": {      "url": "https://castle.usefulapi.io/mcp"    }  }}

Add only the URL. Do not add an Authorization header or an API key to the client config: the server signs you in with OAuth, and the login page asks for your Castle credentials.

Step-by-step setup, where to find your credentials, and FAQ: https://usefulapi.io/castle/

On first connect you'll paste your Castle credentials. They are validated, stored per-user, and scoped to you — no keys in config files.

Tools

ToolTypeWhat it does
castle_get_events_schemareadGet the event schema
castle_search_eventsreadSearch security events
castle_group_eventsreadGroup security events
castle_search_listsreadSearch lists
castle_get_listreadGet one list
castle_search_list_itemsreadSearch items in a list
castle_count_list_itemsreadCount items in a list
castle_get_list_itemreadGet one list item
castle_create_listwriteCreate a list
castle_update_listwriteUpdate a list
castle_create_list_itemwriteAdd an item to a list
castle_update_list_itemwriteUpdate a list item's comment
castle_archive_list_itemwriteArchive a list item
castle_unarchive_list_itemwriteUnarchive a list item
castle_usage_statusmetaUsage status (free-tier meter)
castle_request_featuremetaRequest a missing feature
castle_upgrademetaUpgrade to Pro or Pro+
castle_cancel_subscriptionmetaCancel the Pro subscription

read tools are read-only; write tools mutate data (clients should confirm them); meta tools report usage, manage your subscription or send a feature request.

Pricing

PlanPriceLimit
Free$050 tool calls / month
Pro$9/mo or $90/yr (2 months free)10,000 tool calls / month
Pro+$39/mo or $390/yr (2 months free)100,000 tool calls / month

Each paid plan covers this server only. Ask your AI to run castle_upgrade and choose Pro or Pro+, billed monthly or yearly (it returns a Stripe Checkout link). If you already have Pro, ask to change it to Pro+. The change requires your confirmation, keeps your billing interval and charges the price difference for the rest of the period immediately. Cancel any time with castle_cancel_subscription: your paid plan continues to the end of the paid period, with no refund for the current period, and asking to resume the same plan with castle_upgrade before then undoes the cancel. Or write to [email protected].

License

MIT

來源:servers/castle/README.md,提交 3c1b3df

工具

14

castle_get_events_schema

Get the event schema

List the event fields you can filter and group on, with their types. Read this first — the other query tools need real field names. Castle: GET /v1/events/schema.

無需輸入參數。

castle_search_events

Search security events

Query the security event stream — logins, registrations, transactions and their risk verdicts. Read-only despite being a POST: Castle takes the query in the body. Castle: POST /v1/events/query.

輸入參數pagecolumnsfilters必填query_typeresults_size

castle_group_events

Group security events

Aggregate matching events by one or more fields — the fast way to see which IPs, devices or countries dominate a spike. Read-only despite being a POST. Castle: POST /v1/events/group.

輸入參數pagefilters必填results_sizegroup_by_fields必填

castle_search_lists

Search lists

Find the allow/deny lists defined in the environment. Read-only despite being a POST. Castle: POST /v1/lists/query.

輸入參數pagefiltersresults_size

castle_get_list

Get one list

Fetch a single list with its primary and secondary field definitions. Castle: GET /v1/lists/{id}.

輸入參數list_id必填

castle_search_list_items

Search items in a list

Search the entries of one list — the blocked IPs, emails or device ids it holds. Read-only despite being a POST. Castle: POST /v1/lists/{list_id}/items/query.

輸入參數pagefilterslist_id必填results_size

castle_count_list_items

Count items in a list

Count the entries in one list, with the same optional filters as the search. Read-only despite being a POST. Castle: POST /v1/lists/{list_id}/items/count.

輸入參數filterslist_id必填

castle_get_list_item

Get one list item

Fetch a single list entry — its value, who added it, the comment and its archive time. Castle: GET /v1/lists/{list_id}/items/{id}.

輸入參數item_id必填list_id必填

castle_create_list

Create a list

Create a new allow or deny list. primary_field is the event field its entries match on, e.g. ip or user.email. Castle: POST /v1/lists.

輸入參數name必填color必填descriptionprimary_field必填secondary_field

castle_update_list

Update a list

Rename a list or change its colour or description. Castle: PUT /v1/lists/{id}.

輸入參數namecolorlist_id必填description

castle_create_list_item

Add an item to a list

Add an entry to a list — for example block an IP or an email. This changes live policy behaviour. Castle: POST /v1/lists/{list_id}/items.

輸入參數commentlist_id必填author_type必填primary_value必填secondary_valueauto_archives_atauthor_identifier必填

castle_update_list_item

Update a list item's comment

Change the comment on a list entry. Castle: PUT /v1/lists/{list_id}/items/{id}.

輸入參數comment必填item_id必填list_id必填

castle_archive_list_item

Archive a list item

Archive a list entry so it stops matching. Reversible with castle_unarchive_list_item. Castle: DELETE /v1/lists/{list_id}/items/{id}/archive.

輸入參數item_id必填list_id必填

castle_unarchive_list_item

Unarchive a list item

Restore a previously archived list entry so it matches again. Castle: PUT /v1/lists/{list_id}/items/{id}/unarchive.

輸入參數item_id必填list_id必填

版本歷史

26
  1. v1.39.2最新Nov 14, 2026
  2. v1.39.1Nov 13, 2026
  3. v1.38.0Nov 12, 2026
  4. v1.37.3Nov 11, 2026
  5. v1.36.5Nov 8, 2026
  6. v1.36.4Nov 7, 2026
  7. v1.35.3Nov 5, 2026
  8. v1.35.2Nov 5, 2026
  9. v1.35.1Nov 4, 2026
  10. v1.35.0Nov 3, 2026
  11. v1.34.1Nov 3, 2026
  12. v1.33.0Nov 1, 2026
  13. v1.31.0Oct 31, 2026
  14. v1.30.0Oct 31, 2026
  15. v1.29.2Oct 30, 2026
  16. v1.29.0Oct 30, 2026
  17. v1.24.0Oct 26, 2026
  18. v1.21.3Oct 25, 2026
  19. v1.21.0Oct 25, 2026
  20. v1.20.0Oct 24, 2026
  21. v1.17.0Oct 23, 2026
  22. v1.16.4Oct 22, 2026
  23. v1.16.3Oct 21, 2026
  24. v1.11.1Oct 9, 2026
  25. v1.10.0Oct 9, 2026
  26. v1.0.0Sep 29, 2026

評分

已滿足適用檢查項的 100%

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

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Usefulapi 整合