Castle MCP by usefulapi
io.usefulapi/castle
MCP server OK 14 tools
Investigate security events and manage the allow/deny lists an analyst acts on.
Technical sheet
- Author
- usefulapi.io (registry namespace)
- Repository
- github.com/m190/usefulapi-mcp
- Site
- usefulapi.io/castle
- Version
- 1.40.4
- Transport
- Streamable HTTP
- Authentication
- None (observed by our test)
- Server address
- https://castle.usefulapi.io/mcp Streamable HTTP
- Tools
- 14
- Categories
- Security
- Last updated
- 18 Nov 2026
- Published
- 18 Nov 2026
Badge for your README
Free, for every entry. It links back to this entry and shows “tested OK” as long as our latest test succeeded.
[](https://latlas.dev/en/mcp/io.usefulapi/castle)<a href="https://latlas.dev/en/mcp/io.usefulapi/castle"><img src="https://latlas.dev/badge/fiche/io.usefulapi/castle.svg?lang=en" alt="Listed on L’Atlas" height="20"></a>Our tests
Every week: initialize then tools/list, without credentials, never calling a tool. Method
- Address
- https://castle.usefulapi.io/mcp
- Last result
- OK 28 Nov 2026, 10:30
- Response time
- 257 ms (initialize + tools/list)
- Protocol version
- 2025-11-25
- Announced name
- castle-mcp 1.40.4
- Tools
- 14
History
| Date | Result | Response | Tools |
|---|---|---|---|
| 28 Nov 2026, 10:30 | OK | 257 ms | 14 |
Exposed tools (14, from tools/list, 28 Nov 2026)
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.
No parameters.
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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| filters | array<object> | yes | Castle query filters, ANDed together. Each is {field, op, value} — e.g. {"field":"user.email","op":"$eq","value":"[email protected]"}. Operators: $eq, $neq, $in, $nin, $like, $nlike, $contains, $ncontains, $starts_with, $nstarts_with, $ends_with, $nends_with, $matches, $nmatches, $ip_range, $nip_range,… |
| query_type | enum: "$records" | "$count" | "$records_with_count" | no | Return matching records, just a count, or both. Defaults to records. |
| columns | array<string> | no | Only return these event fields. |
| page | integer | no | 1-based page number. |
| results_size | integer | no | Results per page, 1-100. |
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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| filters | array<object> | yes | Castle query filters, ANDed together. Each is {field, op, value} — e.g. {"field":"user.email","op":"$eq","value":"[email protected]"}. Operators: $eq, $neq, $in, $nin, $like, $nlike, $contains, $ncontains, $starts_with, $nstarts_with, $ends_with, $nends_with, $matches, $nmatches, $ip_range, $nip_range,… |
| group_by_fields | array<string> | yes | Fields to group by, e.g. ["ip", "user.email"]. Names come from the event schema. |
| page | integer | no | 1-based page number. |
| results_size | integer | no | Results per page, 1-100. |
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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| filters | array<object> | no | Optional {field, op, value} filters over the lists themselves. |
| page | integer | no | 1-based page number. |
| results_size | integer | no | Results per page, 1-100. |
castle_get_list
Get one list
Fetch a single list with its primary and secondary field definitions. Castle: GET /v1/lists/{id}.
| Parameter | Type | Required | Description |
|---|---|---|---|
| list_id | string | yes | The list's 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| list_id | string | yes | The list to search. |
| filters | array<object> | no | Optional {field, op, value} filters over the items. |
| page | integer | no | 1-based page number. |
| results_size | integer | no | Results per page, 1-100. |
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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| list_id | string | yes | The list to count. |
| filters | array<object> | no | Optional {field, op, value} filters over the items. |
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}.
| Parameter | Type | Required | Description |
|---|---|---|---|
| list_id | string | yes | The list holding the item. |
| item_id | string | yes | The item's 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | The list name. |
| color | string | yes | Dashboard colour label, e.g. $red, $green, $blue — Castle requires one. |
| primary_field | string | yes | The event field entries match on, e.g. ip or user.email. |
| description | string | no | What this list is for. |
| secondary_field | string | no | An optional second field entries also carry. |
castle_update_list
Update a list
Rename a list or change its colour or description. Castle: PUT /v1/lists/{id}.
| Parameter | Type | Required | Description |
|---|---|---|---|
| list_id | string | yes | The list to update. |
| name | string | no | New name. |
| color | string | no | New colour label. |
| description | string | no | New 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| list_id | string | yes | The list to add to. |
| primary_value | string | yes | The value to add, matching the list's primary_field. |
| author_type | enum: "$analyst_email" | "$castle_dashboard_user" | "$castle_policy" | "$user" | "$user_email" | "$other" | yes | What kind of actor is adding this entry. |
| author_identifier | string | yes | Who is adding it, e.g. the analyst's email address. |
| secondary_value | string | no | Value for the list's secondary_field. |
| comment | string | no | Why this entry was added. |
| auto_archives_at | string | no | ISO-8601 time to archive the entry automatically. |
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}.
| Parameter | Type | Required | Description |
|---|---|---|---|
| list_id | string | yes | The list holding the item. |
| item_id | string | yes | The item to update. |
| comment | string | yes | The new comment. |
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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| list_id | string | yes | The list holding the item. |
| item_id | string | yes | The item to archive. |
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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| list_id | string | yes | The list holding the item. |
| item_id | string | yes | The item to restore. |
Client compatibility
Based on the transports each client documents as supported; this is not a live test inside the client.
| Client | Documented transports | This server | Source |
|---|---|---|---|
| Claude Code | stdio Streamable HTTP SSE | transport accepted | doc |
| Claude (claude.ai, Claude Desktop, Cowork) | stdio Streamable HTTP SSE | transport accepted | doc |
| ChatGPT (serveurs MCP personnalisés / plugins) | Streamable HTTP SSE | transport accepted | doc |
| Cursor | stdio Streamable HTTP SSE | transport accepted | doc |
| VS Code (GitHub Copilot) | stdio Streamable HTTP SSE | transport accepted | doc |
| Windsurf (documentation redirigée vers Devin Local / Devin CLI) | stdio Streamable HTTP SSE | transport accepted | doc |
| Gemini CLI | stdio Streamable HTTP SSE | transport accepted | doc |
| OpenAI Codex (CLI, extension IDE, app) | stdio Streamable HTTP | transport accepted | doc |
Ready-to-copy configs
Remote address used: https://castle.usefulapi.io/mcp. Formats taken from each client’s documentation.
claude mcp add --transport http castle https://castle.usefulapi.io/mcpCustomize > Connectors > + Add > Add custom connector ; Name : castle ; URL : https://castle.usefulapi.io/mcpchatgpt.com/plugins > + > Add custom MCP server ; Name : castle ; Server URL : https://castle.usefulapi.io/mcp ; Create as a plugin{
"mcpServers": {
"castle": {
"url": "https://castle.usefulapi.io/mcp"
}
}
}{
"mcpServers": {
"castle": {
"type": "http",
"url": "https://castle.usefulapi.io/mcp",
"tools": ["*"]
}
}
}{
"mcpServers": {
"castle": {
"url": "https://castle.usefulapi.io/mcp"
}
}
}{
"mcpServers": {
"castle": {
"httpUrl": "https://castle.usefulapi.io/mcp"
}
}
}[mcp_servers.castle]
url = "https://castle.usefulapi.io/mcp"Cite this source
Writing an article or comparison? This entry distinguishes registry information from our measurements. Cite the permanent link and the test date; an OK result is not a security audit or an availability guarantee.
Castle MCP by usefulapi · L’Atlas · Tested on
[Castle MCP by usefulapi — L’Atlas](https://latlas.dev/en/mcp/io.usefulapi/castle)Source : Registre officiel MCP · retrieved 30 Nov 2026. L’Atlas adds no data beyond this source and its own tests.