INKY MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PORT | No | HTTP port. MCP_HTTP_PORT wins over PORT. Default 8080. | 8080 |
| AUTH_MODE | No | HTTP only. env: INKY_API_KEY from the environment. gateway: credentials from request headers, no environment fallback. Default env. | env |
| LOG_LEVEL | No | debug, info, warn, or error. All logs go to stderr. Default info. | info |
| INKY_REGION | No | eu or us. Default us. In gateway mode: the default when a request has no X-Inky-Region header. | us |
| INKY_API_KEY | No | INKY API key. Used by stdio and by HTTP with AUTH_MODE=env. Ignored in gateway mode. | |
| MCP_HTTP_HOST | No | HTTP bind address. Default 127.0.0.1; the Docker image sets 0.0.0.0. | 127.0.0.1 |
| MCP_HTTP_PORT | No | HTTP port. MCP_HTTP_PORT wins over PORT. Default 8080. | 8080 |
| MCP_TRANSPORT | No | stdio or http. Default stdio. | stdio |
| INKY_TIMEOUT_MS | No | Per-request timeout. Default 30000. | 30000 |
| INKY_MAX_RETRIES | No | Retries for 429 / 500 / 502-504 and network errors (GET only). Default 2. | 2 |
| MCP_BEARER_TOKEN | No | HTTP gateway auth for gateways that send fixed headers: every /mcp request needs Authorization: Bearer <token> (at least 24 characters). | |
| INKY_API_BASE_URL | No | Alternative to INKY_REGION; must be exactly one of the two INKY API origins: https://api.eu.inkyphishfence.com or https://api.inkyphishfence.com. | |
| CONDUIT_S2S_SECRET | No | HTTP gateway auth, WYRE conduit style: every /mcp request needs a valid signed X-Gateway-S2S header. | |
| INKY_MAX_OUTPUT_CHARS | No | Largest tool result; larger results drop rows from the main list and say so. Default 60000. | 60000 |
| MCP_ALLOW_INSECURE_DEV | No | 1 = start HTTP with neither secret, loopback only. Local development only. | |
| INKY_ENABLE_RAW_REQUEST | No | Set false to hide inky_raw_request. Default true. | true |
| INKY_MAX_RESPONSE_BYTES | No | Largest INKY response body read. Default 5242880. | 5242880 |
| INKY_MAX_RETRY_WAIT_SECONDS | No | Longest Retry-After the server will wait; longer waits are returned as an error with retry_after_seconds. Default 30. | 30 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Read-only tools for the INKY email security External API. Start with inky_test_connection to see the key's scope and permissions, use inky_teams_find to resolve a customer to a team_id, then inky_messages_search, inky_reported_mail_list, inky_allow_list_list / inky_block_list_list and inky_threat_summary. Most families are INKY beta endpoints. Message bodies are never available; results are bounded and paged with next_cursor.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| inky_navigateA | List the INKY tools by domain with one-line titles. A help/discovery aid: every tool is always callable. Typical investigation flow: inky_teams_find → inky_messages_search → inky_reported_mail_list / inky_allow_list_list → inky_threat_summary. |
| inky_statusA | Show this MCP server's INKY configuration (region, API origin, whether a key is configured) and check that the INKY API is reachable via the unauthenticated GET /v1/status. Does not validate the key; use inky_test_connection for that. |
| inky_test_connectionA | Validate the INKY API key (GET /v1/me) and report its scope root (team or organization), permissions, lifecycle (active/rotated, expiry) and current rate-limit headers. Run this first when a tool returns FORBIDDEN or authentication errors. |
| inky_teams_listA | List the teams and organization nodes visible to the API key (GET /v1/teams), one page at a time. Each node has kind ('org' groups other nodes, 'team' holds mailboxes), parent_team_id (rebuild the estate tree from it), label and protected domains. Use inky_teams_find to look a customer up by name or domain. |
| inky_teams_findA | Find teams/organization nodes whose label, team id or protected domain contains the query (case-insensitive). Walks GET /v1/teams page by page (up to max_pages pages of 999) and matches client-side, so it answers 'which INKY team is customer X / domain acme.com?'. Returns team_id values to pass to other tools. |
| inky_teams_getA | Get one team or organization node by team_id (GET /v1/teams/{team_id}): kind, label, parent, disabled flag, creation time and every protected domain. |
| inky_usage_getA | Current billable mailbox usage snapshot per team (GET /v1/usage). total_billable_mailboxes covers the whole estate on every page; teams are paged. Useful for license reconciliation and spotting teams with zero protected mailboxes. |
| inky_usage_historyA | Daily billable mailbox counts per team plus an estate-wide daily series (GET /v1/usage/history). Use days (1-90, default 30) OR start_date+end_date (inclusive, max 365 days), not both. daily_totals is complete on every page: take it from the first page only. |
| inky_messages_searchA | Search the analysis records of inbound mail INKY processed (GET /beta/teams/{team_id}/messages, beta; needs messages.read). Newest first. Exact-match filters ANDed together: recipient (start of most investigations), sender, from_domain, rfc822_message_id (correlate with SIEM/reported mail), threat_level, reason codes, delivery_target, result_category, reported. Pass an organization node as team_id to search every team beneath it. Window defaults to the last 7 days and may not exceed 90 days. No subject/free-text search exists. detail=true adds links, attachments (name/type/size/SHA-256), Reply-To/To/Cc, sender IP/country, HELO and provider spam signals. Message bodies are never available. A copy is identified by team_id + mailbox + rfc822_message_id + received_at. |
| inky_statistics_getA | One team's daily counts of inbound mail INKY analysed (beta; needs statistics.read), by breakdown: 'verdict' (neutral/caution/danger per day, zeros included), 'reason' (detection codes per day; a message with several reasons counts under each) or 'result_category'. Whole closed UTC days, default the last 30 ending yesterday, max 90 days, max 179 days back. Returns per-day rows plus window totals. |
| inky_threat_summaryA | Threat summary for one team over a window of closed UTC days (two beta statistics calls; needs statistics.read): total inbound messages, neutral/caution/danger counts and percentages, the busiest danger days, and the top detection reasons. Good for monthly client reports and spotting a phishing wave; follow up with inky_messages_search (threat_level=danger, or reason=) for the messages behind a spike. |
| inky_reported_mail_listA | List the reported-mail triage queue: records built from user-reported messages with at least one open item (beta; needs reported_mail.read). Estate-wide, or one node with team_id. Default window is the last 7 days of activity; created_since/created_until reach older records. updated_since or rfc822_message_id also return already-closed records ('what happened to this message?'). Each record shows severity, queue_route (triage bucket), items with sender/Message-ID and the user reports. Keep poll_from and pass it as updated_since next time; re-reading the same first page within 60 s is refused with POLLED_TOO_SOON. |
| inky_reported_mail_getA | Get one reported-mail record with its items and user reports (beta; needs reported_mail.read). Works for records that already left the queue (fully remediated), so the outcome of a report is always readable. |
| inky_reported_mail_item_actionsA | Preview the allow-list and block-list rules INKY can create from one reported item's message, with the exact criteria each would write and whether an equivalent rule already exists (beta). Read-only preview, but INKY gates it with the reported_mail.remediate permission, so a read-only key gets FORBIDDEN. This server never applies actions. |
| inky_allow_list_listA | List allow-list rules, which suppress an INKY verdict (result_type) for matching mail (beta; needs allow_list.read). Estate-wide, or for one node with team_id (includes inherited blanket rules unless inherited=false). Filters: sender, domain, result_type ('*' = allow-anything rules, the usual audit target), user_email, enabled. Each rule has a shape (sender, domain, url, attachment, …) naming its criteria fields. Use to answer 'why was this phish delivered?'. |
| inky_allow_list_getA | Get one allow-list rule on a team by its id (beta; needs allow_list.read). |
| inky_block_list_listA | List block-list rules, which force a verdict for mail from matching senders (beta; needs block_list.read). Estate-wide, or for one node with team_id (includes inherited blanket rules unless inherited=false). Filters: from_email, from_domain (domain rules also cover subdomains), sender_ip, user_email, result_type, enabled. |
| inky_block_list_getA | Get one block-list rule on a team by its id (beta; needs block_list.read). |
| inky_vips_listA | List VIP entries — protected display names (first name, last name, expected email) INKY uses to detect name spoofing (beta; needs vips.read). Estate-wide or per team; VIPs are strictly per-team and never inherited. Filters: email (exact), first_name / last_name (case-insensitive prefix). |
| inky_vips_getA | Get one VIP entry on a team by its id (beta; needs vips.read). |
| inky_admins_listA | Audit who holds INKY console roles (beta; needs admins.read). Without team_id: every principal across the estate with its DIRECT grants (filter by email). With team_id: who effectively administers that team, including grants inherited from ancestors (inherited=false for direct only); access is the union of all scope_grants. Principals are people (email), IdP groups or Kaseya One roles. |
| inky_admins_getA | Get one email principal's effective console grant on a team (beta; needs admins.read). 404 when the email has no grant visible at that team. |
| inky_result_types_listA | The catalog of verdict codes (result_type) used by allow and block lists, with the console label, a description, which lists support it and its rule shape (beta). Use it to translate between what an admin saw in the console and the codes the API uses. |
| inky_raw_requestA | Escape hatch: send a GET to a documented INKY External API read endpoint and return the raw JSON. Prefer the typed tools. path is relative to the API origin and must match a documented GET template, e.g. /v1/teams, /beta/teams/{team_id}/messages, /beta/teams/{team_id}/statistics/reasons. Put query parameters in 'query' (arrays repeat the parameter). GET only; credentials, host and limits are fixed by the server. INKY rejects undeclared query parameters on /beta paths. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 24 tools
Tools are organized around distinct resources (teams, usage, messages, statistics, reported mail, VIPs, allow/block lists, admins) with list/get pairs that are easy to tell apart. Minor overlaps exist: inky_status vs inky_test_connection are both diagnostics, inky_statistics_get vs inky_threat_summary both aggregate the same data, and inky_reported_mail_item_actions sounds like a mutation despite being a read-only preview — but each description disambiguates well.
All names use a consistent inky_ prefix plus snake_case resource_action pattern (inky_teams_list, inky_allow_list_get, inky_messages_search), which is predictable and readable. Deviations are limited to a few singleton helpers (inky_navigate, inky_status, inky_test_connection, inky_threat_summary) and the order swap of inky_vips_get/inky_vips_list.
24 tools is on the heavier side, and the many list/get pairs inflate the surface. However, the server genuinely spans many distinct resource domains (teams, usage, mail analysis, statistics, triage queue, VIPs, allow/block lists, admins), so most tools earn their place rather than being redundant.
The read-only surface is broad and coherent: discovery/status, estate and team lookup, usage and usage history, message search with detail, statistics and threat summaries, reported-mail triage with outcome lookup, VIP/allow/block/admin list+get, and a raw-GET escape hatch for anything undocumented by the typed tools. Gaps are minor — statistics and threat summaries are single-team only while message search accepts org nodes, and there is no direct message-by-id fetch or mailbox enumeration within a team.