Find IANA ports, MIME types, HTTP codes/fields, URI schemes, PENs, BCP 47 tags, RFCs, any registry.
Look up IANA ports, media types, HTTP status codes and fields, URI schemes, enterprise numbers, and BCP 47 language tags; check RFC status; search and read any IANA registry via MCP. STDIO or Streamable HTTP.
Protocol parameters from the IANA registries, and document status from the RFC Editor and the IETF Datatracker. Look up ports, media types, HTTP status codes and fields, URI schemes, Private Enterprise Numbers, and BCP 47 language tags; check whether an RFC is current, obsoleted, or updated, and where an Internet-Draft stands; and search and read any other registry in the IANA protocol index. RFC answers are metadata only: the server never returns RFC text. Runs as a stdio process or a local Streamable HTTP server.
| Tool | Description |
|---|---|
iana_lookup_port | Service name and port assignments by port number, service name, or keyword, per transport, with the port's RFC 6335 class |
iana_lookup_media_type | Registered media (MIME) types by exact type or keyword, with status, replacement, and registration-template statements |
iana_lookup_http_status | An HTTP status code by number, or reason phrases by keyword; an unassigned code reports its range |
iana_lookup_http_field | Registered HTTP field (header and trailer) names with status and Structured Field type |
iana_lookup_uri_scheme | Registered URI schemes with status, description, and well-known URI support |
iana_lookup_pen | Private Enterprise Numbers by number or OID under 1.3.6.1.4.1, or by organization name |
iana_lookup_language_tag | Validate and canonicalize a BCP 47 language tag subtag by subtag, or search subtags by description |
iana_get_rfc_status | Current status and relations of up to 10 RFCs or Internet-Drafts per call |
iana_search_registries | Find any registry or sub-registry in the IANA protocol index by keyword |
iana_get_registry_records | Read and filter the records of any IANA XML registry by id |
iana_lookup_port toolport (0–65535), service (exact name), or keyword; transport (tcp, udp, sctp, dccp) filters every modestate (assigned, reserved, unassigned, unnamed) and its transport; port mode adds port_class (system, user, dynamic) and the range rows that contain the portiana_lookup_media_type tooltype (e.g. application/json; parameters after ; are dropped) or keyword; top_level narrows keyword modestatus is current, deprecated, or obsoleted, with replaced_by when the registry names a replacementtype mode also reads the registration template and returns its file-extension, intended-usage, and deprecated-alias statements under template; template.fetched is false when the template can't be readiana_lookup_http_status toolcode (100–599) or keyword over registered reason phrasesclass and state (assigned, temporary, obsoleted, unused) with the defining reference and section; an unassigned code returns found: false and its unassigned_rangeiana_lookup_http_field toolname (case-insensitive) or keyword over names and comments; status filters both modesstatus (permanent, provisional, deprecated, obsoleted), structured_type when one is registered, comments, and the defining referenceiana_lookup_uri_scheme toolscheme (a trailing : or :// is ignored) or keyword; status (permanent, provisional, historical) filters both modeswell_known_uri_support, and template_url when a registration template is publishediana_lookup_pen toolpen (a number, or an OID under 1.3.6.1.4.1) or organization wordsoid prefix and state (assigned, reserved, unassigned); organization_withheld: true marks an organization line held back because it mixes in contact detailsrequested_oid and sub_arcs; those arcs are assigned by the enterprise, not IANAiana_lookup_language_tag tooltag (underscores read as hyphens) or description; subtag_type narrows description modewell_formed, valid, canonical_tag (valid tags only), each part in subtags[], and issues[]: kind unknown and wrong_position make a tag invalid, while deprecated, variant_prefix_mismatch, suppress_script_redundant, and extension_not_validated are advisoryalso_registered_asiana_get_rfc_status toolids per call: RFC numbers in any common form, RFC Editor or Datatracker URLs, and draft names with or without a revision suffix; BCP, STD, and FYI numbers come back as kind: "unsupported"documents[] gives RFCs their current and as-published status, stream, group, obsoletes and updates relations, and errata page, and gives drafts their state, IESG state, replacements, and became_rfc; an unknown id is found: false with guidancefailed[] while the rest still answer; the call fails only when every id failediana_search_registries toolquery words matched against registry titles, categories, and ids, with an exact registry or sub-registry id ranked first; limit 1–50, default 15, paged by offsetregistry_id and subregistry_id that iana_get_registry_records reads, plus registration procedure, defining documents, and page and XML URLsiana_get_registry_records toolregistry id or iana.org/assignments URL, optional subregistry, and filters value (exact match on the key column; a decimal also matches range rows) and contains (words in any field)cursor / next_cursor within limit (1–100, default 25) and a 48,000-character records budget; a field over 2,000 characters is cut, a record keeps at most 16 fields, and cut_fields names what was cutsubregistries[] instead of records; failures carry unknown_registry, unknown_subregistry, non_xml_registry, invalid_cursor, or cursor_mismatchBuilt on @cyanheads/mcp-ts-core: stdio and Streamable HTTP transports, pluggable auth (none / jwt / oauth), swappable storage (in-memory, filesystem, Supabase, Cloudflare KV/R2/D1), structured logging with optional OpenTelemetry tracing.
IANA-specific:
source.stale: truerec is the Recommended column); the registry notes returned on the first page usually explain them[email removed]Agent-friendly output:
found: false with a notice naming the next step, an unknown RFC or draft returns found: false with guidance, and an invalid language tag returns valid: false with its issues[]. A miss means IANA has no registration, not that a value is unused in practicemode_required otherwise; limit is 1–100, default 25, and the list modes (keyword, organization, description) page with offset and return next_offset, alongside totalCount, shown, and truncatedsource names the registry file, registry_updated (the registry's own last-updated date), fetched_at, and staleupstream_unreadable (index_unreadable for search) and pacer_shed, which carries retryAfter when this server's own request queue is fullAdd the following to your MCP client configuration file.
{
"mcpServers": {
"iana-registries-mcp-server": {
"type": "stdio",
"command": "bunx",
"args": ["@cyanheads/iana-registries-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info"
}
}
}
}
Or with npx (no Bun required):
{
"mcpServers": {
"iana-registries-mcp-server": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@cyanheads/iana-registries-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info"
}
}
}
}
Or with Docker:
{
"mcpServers": {
"iana-registries-mcp-server": {
"type": "stdio",
"command": "docker",
"args": ["run", "-i", "--rm", "-e", "MCP_TRANSPORT_TYPE=stdio", "ghcr.io/cyanheads/iana-registries-mcp-server:latest"]
}
}
}
For Streamable HTTP, set the transport and start the server:
MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 bun run start:http
# Server listens at http://localhost:3010/mcp
git clone https://github.com/cyanheads/iana-registries-mcp-server.git
cd iana-registries-mcp-server
bun install
cp .env.example .env
# the server needs no variables of its own; edit framework overrides as needed
The server reads no environment variables of its own. These framework settings apply:
| Variable | Description | Default |
|---|---|---|
MCP_TRANSPORT_TYPE | Transport: stdio or http. | stdio |
MCP_HTTP_PORT | HTTP server port. | 3010 |
MCP_HTTP_HOST | HTTP server host. | 127.0.0.1 |
MCP_HTTP_ENDPOINT_PATH | HTTP endpoint path. | /mcp |
MCP_SESSION_MODE | HTTP session mode: stateless, stateful, or auto. | stateless |
MCP_AUTH_MODE | Authentication: none, jwt, or oauth. | none |
MCP_LOG_LEVEL | Log level (debug, info, warning, error, etc.). | info |
LOGS_DIR | Directory for log files (Node.js only). | <app-root>/logs |
STORAGE_PROVIDER_TYPE | Storage backend: in-memory, filesystem, supabase, cloudflare-kv/r2/d1. | in-memory |
OTEL_ENABLED | Enable OpenTelemetry. | false |
See .env.example for the full list of framework overrides.
Build and run the production version:
# One-time build
bun run rebuild
# Run the built server
bun run start:http
# or
bun run start:stdio
Run checks and tests:
bun run devcheck # Lints, formats, type-checks, and more
bun run test # Runs the test suite
| Directory | Purpose |
|---|---|
src/index.ts | createApp() entry point: registers the tools and starts and stops the services. |
src/mcp-server/tools/definitions | Tool definitions (*.tool.ts), ten tools. |
src/mcp-server/tools/shared | Schemas, list paging and notices, and markdown helpers the tools share. |
src/services/upstream | Paced, budgeted HTTP client for iana.org, rfc-editor.org, and datatracker.ietf.org. |
src/services/registry | Registry cache and parsers: XML registries, the PEN list, the language subtag registry, the protocol index, BCP 47 tag analysis, and personal-data scrubbing. |
src/services/media-template | Media type registration template reader. |
src/services/ietf | RFC Editor and Datatracker document status. |
tests/ | Unit and tool tests, mirroring the src/ structure. |
See CLAUDE.md for development guidelines and architectural rules. The short version:
try/catch in tool logicctx.log for logging; registry text is third-party, so format() renders it through the quote() and inline() helperssrc/mcp-server/tools/definitions/index.tsIssues are welcome. Run checks and tests before submitting:
bun run devcheck
bun run test
This project is licensed under the Apache 2.0 License. See the LICENSE file for details.
IANA and the IETF Trust dedicate the protocol registries to the public domain under CC0 1.0 (licensing terms, joint statement of 10 November 2021). RFC documents are excluded from that statement; this server returns RFC metadata only, never RFC text. This project is independent of IANA, the IETF, and the RFC Editor.
Source-derived launch command. Check the maintainer’s required arguments and credentials before running:
npx -y @cyanheads/iana-registries-mcp-serverMerge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.
{
"mcpServers": {
"io-github-cyanheads-iana-registries-mcp-server": {
"command": "npx",
"args": [
"-y",
"@cyanheads/iana-registries-mcp-server"
]
}
}
}Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.
Claude Desktop setup referenceio.github.cyanheads/iana-registries-mcp-server works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.
~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.~/.cursor/mcp.jsonRestart Cursor for changes to take effect..vscode/mcp.jsonReload VS Code window for changes to take effect.~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect..mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.