@cyanheads/iana-registries-mcp-server
Public Hosted Server: https://iana-registries.caseyjhand.com/mcp
Overview
Official IANA protocol registries plus RFC and Internet-Draft status. Look up ports, media types, HTTP status codes and headers, URI schemes, enterprise numbers, and language tags; search any other registry; and check whether an RFC is current, obsoleted, or updated. No API key required.
Tools
Tool | Description |
| Service name and port assignments by port number, service name, or keyword, per transport, with the port's RFC 6335 class |
| Registered media (MIME) types by exact type or keyword, with status, replacement, and registration-template statements |
| An HTTP status code by number, or reason phrases by keyword; an unassigned code reports its range |
| Registered HTTP field (header and trailer) names with status and Structured Field type |
| Registered URI schemes with status, description, and well-known URI support |
| Private Enterprise Numbers by number or OID under |
| Validate and canonicalize a BCP 47 language tag subtag by subtag, or search subtags by description |
| Current status and relations of up to 10 RFCs, Internet-Drafts, or BCP/STD/FYI series per call |
| Find any registry or sub-registry in the IANA protocol index by keyword |
| Read and filter the records of any IANA XML registry by id |
Related MCP server: rfc-mcp
Capability reference
iana_lookup_port tool
One of
port(0–65535),service(exact name), orkeyword;transport(tcp,udp,sctp,dccp) filters every modeEach row carries
state(assigned,reserved,unassigned,unnamed) and its transport; port mode addsport_class(system,user,dynamic) and the range rows that contain the port
iana_lookup_media_type tool
One of
type(e.g.application/json; parameters after;are dropped) orkeyword;top_levelnarrows keyword modekeywordmatches registered type names and status annotations, never file extensions; a one-word keyword shaped like an extension (jpg,.mp3,*.jpg) gets a notice saying so, unless a registered top-level type or subtype is named that word (pngstays quiet:image/pngexists)statusiscurrent,deprecated, orobsoleted, withreplaced_bywhen the registry names a replacementtypemode also reads the registration template and returns its file-extension, intended-usage, and deprecated-alias statements undertemplatewhen the template has them;template.fetchedisfalsewhen the template can't be read, andtemplate.availableisfalsewhen IANA publishes no template for the type (image/gif,text/plain)
iana_lookup_http_status tool
One of
code(100–599) orkeywordover registered reason phrasesReturns
classandstate(assigned,temporary,obsoleted,unused) with the defining reference and section; an unassigned code returnsfound: falseand itsunassigned_range
iana_lookup_http_field tool
One of
name(case-insensitive) orkeywordover names and comments;statusfilters both modesReturns
status(permanent,provisional,deprecated,obsoleted),structured_typewhen one is registered, comments, and the defining reference
iana_lookup_uri_scheme tool
One of
scheme(a trailing:or://is ignored) orkeyword;status(permanent,provisional,historical) filters both modesReturns the description, references,
well_known_uri_support, andtemplate_urlwhen a registration template is published
iana_lookup_pen tool
One of
pen(a number, or an OID under1.3.6.1.4.1) ororganizationwords; OIDs accept a leading dot and case-insensitiveiso.3.6.1.4.1,iso.org.dod.internet.private.enterprise(s),SNMPv2-SMI::enterprises, orenterprisesprefixesEach entry carries its
oidprefix andstate(assigned,reserved,unassigned); wholeReserved,Unassigned, and---none---markers are case-insensitive.organization_withheld: truemarks an organization line held back because it mixes in contact detailsAn OID with arcs below the enterprise number echoes
requested_oidandsub_arcs; those arcs are assigned by the enterprise, not IANAA non-enterprise OID or the bare enterprise arc fails before fetching, with guidance to discover SMI tables through
iana_search_registries(query: "smi")
iana_lookup_language_tag tool
One of
tag(underscores read as hyphens) ordescription;subtag_typenarrows description modeTag mode returns
well_formed,valid,canonical_tag(valid tags only), each part insubtags[], andissues[]:kindunknownandwrong_positionmake a tag invalid, whiledeprecated,variant_prefix_mismatch,suppress_script_redundant, andextension_not_validatedare advisoryA single-subtag input lists records of other types under the same subtag in
also_registered_asCanonicalization keeps variant order while deduplicating preferred-value collisions; the registered
ja-Latn-hepburn-heploccontext becomesja-Latn-alalc97, preserving unrelated partsExtension parts add
extensionallocation (allocated,unallocated, orunavailable), descriptions, defining RFCs, and organization authority;extension_sourcerecords the copy used. Allocation does not change base validity or validate extension content. Optional allocation reads stop within 3 seconds; failure returns base analysis with retry guidance, or a stale allocation copy marked as such
iana_get_rfc_status tool
Up to 1,000 normalized nonblank
ids, canonically deduplicated before selecting ten per call: RFC numbers in any common form; BCP, STD, and FYI numbers (BCP 14); draft names with or without a revision suffix; RFC and draft file names (rfc2616.txt,draft-ietf-httpbis-semantics-19.txt); the URL of an RFC or draft on datatracker.ietf.org, tools.ietf.org, or ietf.org, or of an RFC on rfc-editor.org (https://tools.ietf.org/html/rfc7231); and a series URL at rfc-editor.org/info/ or datatracker.ietf.org/doc/ (https://datatracker.ietf.org/doc/bcp14/). A URL's query and fragment are droppedCitation forms include
[RFC9110],[I-D.ietf-tls-esni],RFC 9110, Section 15.5.5, RFC DOIs (10.17487/RFC9110,doi:…, orhttps://doi.org/…), and RFC Editor/errata/rfcNURLs. Sections are ignored with a notice: the result describes the document, never section or errata contentstotal_idscounts distinct full requests after syntactic aliases merge; unsuffixed and revision-qualified drafts remain distinct, even when the requested revision is current.deferred_idspreviews the next ten, whiledeferred_countcounts the whole remainder. Resubmit the same originalidswithnext_ids_offsetasids_offsetto continue; at/past-end offsets return an empty page without upstream requestsdocuments[]gives RFCs their current and as-published status, stream, group, obsoletes and updates relations, the series they belong to (is_also), and errata page; gives drafts their state, IESG state, replacements, andbecame_rfc; and gives a series its member RFCs (kind: "series"). An unknown id isfound: falsewithguidance, and a draft revision past the latest stays found withguidancenaming the latestAn id whose lookup fails lands in
failed[]while the rest still answer, with itsreasonand, when the failure states it,retryable(falsewhen calling again fails the same way); the call fails only when every id failed. A call starts at most 20 Datatracker requests (an RFC or a series takes 1, plus 1 per call for the RFCs' series; a draft 3, or 4 with a revision suffix); ids past that come back infailed[]with reasonrequest_limit, to resubmit
iana_search_registries tool
querywords matched against registry titles, categories, and ids, singular and plural alike (ethertypefinds "Ethertypes"); every word must match,forandtheincluded;limitaccepts 1–1,000,000 and clamps to 50, default 15, paged byoffsetA registry or sub-registry id given exactly ranks first, as does a registry id given as words (
protocol numbers→protocol-numbers); the closest titles followA registry listed under several protocol categories comes back once, its categories joined with
;Each entry carries the
registry_idandsubregistry_idthatiana_get_registry_recordsreads, plus registration procedure, defining documents, and page and XML URLs
iana_get_registry_records tool
A
registryid oriana.org/assignmentsURL, optionalsubregistry, and filtersvalue(exact match on the key column, or on the columnfieldnames) andcontains(words in any field, records with an equal field first)valuesupports exact integers, inclusive signed decimal ranges (a-b,a to b), and strictless than/greater thanbounds without precision loss. A single0xtoken also compares with decimal cells and established bare-hex columns (EtherTypetype_hex, PPP protocolvalue); bare decimal input never gains hexadecimal meaningHex byte sequences preserve width across compact, comma, space, and brace forms, including TLS byte ranges and wildcards:
0x0013matches0x00,0x13, while0x13does not. An implicit key's range-only match yields to an exact alternate-column hit by returning a miss with afieldhint; explicitfieldselection stays authoritativeA
valuethat misses names the other columns holding it, with their row counts, sofieldrecovers a lookup by mnemonic or service name; a hit says when rows without a key cell hold the value tooPages whole records by
cursor/next_cursor(pages after the first carryoffset) within the effectivelimit(at most 100, default 25); field text and metadata lists are returned whole, preserving paragraph boundaries and artwork spacingA registry with several sub-registries and none chosen returns
subregistries[]instead of records; a table that nests tables lists them insubregistries[]on its first page, and a sub-registry read carries the registry's own notes and footnotes inregistry_notes[]Failures carry
unknown_registry,unknown_subregistry,unknown_field,non_xml_registry,invalid_cursor, orcursor_mismatch
Features
Built 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:
Live, keyless reads of the IANA registry files, the RFC Editor's per-RFC JSON, and the IETF Datatracker
Registries load on first use and stay cached for 24 hours before revalidating; when a refresh fails, a cached copy up to 7 days old answers with
source.stale: truePer-host request pacing (iana.org, rfc-editor.org, datatracker.ietf.org) and one 45-second budget per tool call covering every retry and queue wait
Generic records keep the registry's XML element names as field names (
recis the Recommended column)Contact, designated-expert, and registrant-person fields are dropped, and email addresses in free text become
[email removed]
Agent-friendly output:
Misses are results, not errors: a lookup that finds nothing returns
found: falsewith anoticenaming the next step, an unknown RFC or draft returnsfound: falsewithguidance, and an invalid language tag returnsvalid: falsewith itsissues[]. A miss means IANA has no registration, not that a value is unused in practiceUniform lookup contract: every lookup takes exactly one mode key and fails
mode_requiredotherwise; positive safe-integerlimitvalues up to 1,000,000 clamp to 100 (default 25), or 50 foriana_search_registries(default 15). Clamped calls discloserequested_limitandeffective_limiton both surfaces, including exact and empty modes. List modes (keyword,organization,description) page withoffsetand returnnext_offset,totalCount,shown, andtruncatedList-mode
founddescribes the full match set, even on an empty past-end page; port searches require a named service after transport filtering, and PEN organization searches require an assigned entryProvenance on every registry response:
sourcecarries the registry file,registry_updated,fetched_at, andstaleTyped failures with recovery hints: every tool declares
upstream_unreadable(index_unreadablefor search) andpacer_shed, which carriesretryAfterwhen this server's own request queue is full
Getting started
Connect to the hosted instance, no install:
claude mcp add --transport http iana-registries-mcp-server https://iana-registries.caseyjhand.com/mcpOr run it locally:
claude mcp add iana-registries-mcp-server -- npx -y @cyanheads/iana-registries-mcp-serverFor other clients, add this to the MCP config file:
{
"mcpServers": {
"iana-registries-mcp-server": {
"command": "npx",
"args": ["-y", "@cyanheads/iana-registries-mcp-server"]
}
}
}No API key is required. For Docker or a source build, see Running the server.
Agent skill
The iana-registries-guide chains registry assignments to their defining documents, current RFC relationships, and standards-series membership. It ships with plugin installs, npm, Docker, and the MCPB bundle, and is available over MCP to clients supporting the Skills extension.
Configuration
The server reads no environment variables of its own. These framework settings apply:
Variable | Description | Default |
| Transport: |
|
| HTTP server port. |
|
| HTTP server host. |
|
| HTTP endpoint path. |
|
| HTTP session mode: |
|
| Authentication: |
|
| Log level ( |
|
| Directory for log files (Node.js only). |
|
| Storage backend: |
|
| Enable OpenTelemetry. |
|
See .env.example for the full list of framework overrides.
Running the server
Prerequisites
Bun v1.4.0 or higher (or Node.js v24+).
No API key or account: IANA, the RFC Editor, and the IETF Datatracker are all keyless.
Installation
Clone the repository:
git clone https://github.com/cyanheads/iana-registries-mcp-server.gitNavigate into the directory:
cd iana-registries-mcp-serverInstall dependencies:
bun installConfigure environment (optional):
cp .env.example .env
# the server needs no variables of its own; edit framework overrides as neededDocker and HTTP
Run the published image:
{
"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 bunx @cyanheads/iana-registries-mcp-server
# Server listens at http://localhost:3010/mcpLocal development
Build and run the production version:
# One-time build bun run rebuild # Run the built server bun run start:http # or bun run start:stdioRun checks and tests:
bun run devcheck # Lints, formats, type-checks, and more bun run test # Runs the test suite
Project structure
Directory | Purpose |
|
|
| Tool definitions ( |
| Schemas, list paging and notices, and markdown helpers the tools share. |
| Paced, budgeted HTTP client for iana.org, rfc-editor.org, and datatracker.ietf.org. |
| Registry cache and parsers: XML registries, the PEN list, language subtag and extension registries, the protocol index and its ranked search, BCP 47 tag analysis, and personal-data scrubbing. |
| Media type registration template reader. |
| RFC Editor and Datatracker document status. |
| Unit and tool tests, mirroring the |
Development guide
See CLAUDE.md for development guidelines and architectural rules. The short version:
Handlers throw, framework catches — no
try/catchin tool logicUse
ctx.logfor logging; registry text is third-party, soformat()renders it through thequote()andinline()helpersRegister new tools in the barrel at
src/mcp-server/tools/definitions/index.tsWrap external API calls: validate raw → normalize to domain type → return output schema; never fabricate missing fields
Contributing
Issues are welcome. Run checks and tests before submitting:
bun run devcheck
bun run testLicense
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.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
RDAP MCP — Registration Data Access Protocol via IANA bootstrap.
Agent Resource Discovery (ARD, IETF draft) registry: search every ARD registry + verified MCP tools
Search Bluesky posts and feeds; read profiles, threads, and trends. STDIO or Streamable HTTP.
Search, URL-to-markdown, change detection, live data, x402 trust tools. USDC pay-per-call.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides LLM-based access to IETF documents such as RFCs, Internet-Drafts, STD/BCP/FYI series, and errata through a Model Context Protocol server.MIT
- AlicenseNot gradedqualityAmaintenanceEnables evidence-first, read-only analysis of IETF RFCs with pinned content-addressed snapshots, byte-exact citations, and RFC 2119/8174 requirement extraction. Provides tools, resources, and prompts for resolving, reading, searching, comparing, and verifying RFC content with provenance.2 npmApache 2.0
- AlicenseAqualityBmaintenanceEnables coding agents to retrieve exact RFC section text, status and obsoleted-by chains, errata, and IANA registry values such as HTTP status codes, media types, and port numbers.41MIT
- AlicenseNot gradedqualityCmaintenanceEnables retrieval of full RFC text, metadata, errata, and BCP/STD mappings from rfc-editor.org, plus substring search across the RFC index.301 npmMIT