@cyanheads/reference-data-mcp-server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@cyanheads/reference-data-mcp-serverlook up the capital of France"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Public Hosted Server: https://reference-data.caseyjhand.com/mcp
Overview
Countries, timezones, periodic table elements, physical constants, units, HTTP status codes, and MIME types — all served from static, in-memory datasets, entirely offline with no API keys or rate limits. Look up, search, and convert across these domains from any MCP client. Runs as a stdio process, a local Streamable HTTP server, or the public hosted endpoint above.
Tools
Tool | Description |
| Look up a country by name, ISO alpha-2, or alpha-3 code. |
| Search and filter countries by region, subregion, language, or currency. |
| Get timezone info by IANA ID, country code, or city name. |
| Convert a local datetime from one timezone to another. |
| Look up a periodic table element by name, symbol, or atomic number. |
| Filter periodic table elements by category, group, period, or property range. |
| Look up a CODATA 2022 physical constant by name, symbol, or alias. |
| Convert a numeric value between compatible units of measure. |
| Look up an HTTP status code by number or keyword. |
| Look up a MIME type by type string or file extension. |
Resources
Resource | Description |
| Full country record by ISO alpha-2 code. |
| Full element record by atomic number. |
| Timezone info by IANA ID (slashes percent-encoded as |
All resource data is also reachable via tools — use ref_geo_lookup, ref_element_lookup, and ref_timezone_lookup when you need flexible query modes or country search.
Related MCP server: open-meteo-mcp-server
Capability reference
ref_geo_lookup tool
Accepts fuzzy name matching ("Brasil" resolves to "Brazil"); a fuzzy hit adds an enrichment notice naming the canonical result
Lookup modes:
auto(alpha2 → alpha3 → name),name,alpha2,alpha3; numeric ISO codes are not supportedReturns capital, region/subregion, languages, currencies, calling codes, TLD, flag emoji, and IANA timezone IDs
ref_geo_search tool
At least one filter required (
no_filterserror otherwise): keyword (name, native name, capital, subregion), region, subregion, language (ISO 639-1 code or name), or currency (ISO 4217 code or name)Limit 1–100 (default 20);
truncatedflag andtotalMatchescount when results are cut offEmpty result set returns a notice echoing the applied filters
ref_timezone_lookup tool
Lookup modes:
auto(IANA ID → country code → city name),iana,country; partial city matching ("Tokyo" → "Asia/Tokyo", "NY" → "America/New_York")Country-code queries return every timezone observed in that country
Optional
at(ISO 8601) evaluates DST state at a specific moment instead of now; malformed values raiseinvalid_atReturns current/standard UTC offsets, DST status and abbreviations, major cities, and country codes
ref_timezone_convert tool
datetimemust be a local ISO 8601 string without an offset (regex-enforced, e.g.2026-05-24T15:30:00);from_tz/to_tzaccept full IANA IDs or unambiguous city namesRejects out-of-range calendar dates and spring-forward DST gaps as
invalid_datetime; unrecognized zones asinvalid_timezoneReturns source and target local datetimes with their respective UTC offsets, plus the UTC equivalent
ref_element_lookup tool
Lookup modes:
auto(atomic number → symbol → name),name,symbol,numberFull property set: atomic mass (
atomic_mass_estimatedflag), electron configuration, group/period/block, category, Pauling electronegativity, density, melting/boiling points in kelvin, phase at STP, radioactivity, natural occurrence, discovery dataData sourced from PubChem/IUPAC 2024; synthetic or unstable elements return
nullfor experimentally inaccessible properties
ref_element_search tool
At least one filter required (
no_filterserror otherwise): category (partial match), group (1–18), period (1–7), atomic-number range, or atomic-mass rangeValid categories: alkali metal, alkaline earth metal, transition metal, post-transition metal, metalloid, reactive nonmetal, noble gas, lanthanide, actinide
Returns summaries (atomic number, symbol, name, mass, category) plus a
totalMatchescount and a notice when nothing matches
ref_constant_lookup tool
Fuzzy alias matching: "speed of light", "c", "Avogadro's number", "N_A", "Planck", "h", "Boltzmann", "k_B" all resolve against 32 CODATA 2022 constants
match_strategydiscriminates how the query resolved:exact_symbol,exact_name, orfuzzy(closest candidate — verify before reuse)Returns value, SI unit expression, absolute/relative uncertainty (
exactflag for defined constants), CODATA identifier, and up to 3 related constants
ref_unit_convert tool
11 measurement domains: length, mass, volume, temperature (non-linear C/F/K/R), speed, pressure, energy, power, frequency, digital storage, angle
Mass
mtis the metric tonne (1000 kg);tis the US short ton (907.18 kg) — distinct units, easily confusedTyped errors:
incompatible_units(mismatched quantities),unknown_unit(unrecognized abbreviation),below_absolute_zero(with the Kelvin equivalent)
ref_http_status tool
Numeric queries (e.g., "404") return an exact match; keyword queries (e.g., "not found", "too many requests") return the closest match plus alternatives
Returns reason phrase, description, category (1xx–5xx), cacheability per RFC 9110, and the defining RFC with section reference
ref_mime_type tool
Accepts "image/webp", ".webp", or "webp" interchangeably
Extension lookups return the canonical MIME type first; additional types sharing the extension are listed as alternatives
Returns extensions, a compressibility flag (relevant for Content-Encoding decisions), and the data source (iana/apache/nginx)
ref://countries/{alpha2} resource
Full country record as
application/json— same fields asref_geo_lookupalpha2accepts either case; an unmatched code returns anotFounderror
ref://elements/{number} resource
Full element record as
application/json— same fields asref_element_lookupnumbermust be an integer string 1–118; out-of-range or unmatched values returnnotFound
ref://timezones/{iana_id} resource
Timezone record as
application/json— same fields asref_timezone_lookup, plusevaluated_atSlashes in the IANA ID must be percent-encoded as
%2F(e.g.America%2FNew_York); an unencoded slash matches a separate catch-all that returns an actionable error with the correctly encoded URI
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.
Reference-data-specific:
Entirely in-memory — all datasets load at startup; no runtime network calls, no API keys, no rate limits
Works offline and in air-gapped environments
Seven specialized services: geo (countries-list), timezone (Node.js Intl + @vvo/tzdb), elements (PubChem/IUPAC 2024, 118 elements), constants (CODATA 2022, 32 entries), units (convert-units), HTTP status (IANA registry), MIME types (mime-db, ~1,000 types)
Agent-friendly output:
Structured error contracts on every tool — typed
reasoncodes (no_match,no_filters,unknown_unit,incompatible_units,below_absolute_zero,invalid_timezone,invalid_datetime,invalid_at) with actionable recovery hintsDiscriminated outputs where relevant —
truncatedflag on search results,alternativesarrays on MIME/HTTP keyword matches,atomic_mass_estimatedflag on element data,match_strategyon constant lookupsConsistent
nullfor genuinely unknown or inapplicable values rather than absent fields
Getting started
Public Hosted Instance
A public instance is available at https://reference-data.caseyjhand.com/mcp — no installation required. Point any MCP client at it via Streamable HTTP:
{
"mcpServers": {
"reference-data-mcp-server": {
"type": "streamable-http",
"url": "https://reference-data.caseyjhand.com/mcp"
}
}
}Self-Hosted / Local
Add the following to your MCP client configuration file:
{
"mcpServers": {
"reference-data-mcp-server": {
"type": "stdio",
"command": "bunx",
"args": ["@cyanheads/reference-data-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info"
}
}
}
}Or with npx (no Bun required):
{
"mcpServers": {
"reference-data-mcp-server": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@cyanheads/reference-data-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info"
}
}
}
}Or with Docker:
{
"mcpServers": {
"reference-data-mcp-server": {
"type": "stdio",
"command": "docker",
"args": [
"run", "-i", "--rm",
"-e", "MCP_TRANSPORT_TYPE=stdio",
"ghcr.io/cyanheads/reference-data-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/mcpPrerequisites
Bun v1.4.0 or higher (or Node.js v24+).
No API keys required — this server is entirely self-contained.
Installation
Clone the repository:
git clone https://github.com/cyanheads/reference-data-mcp-server.gitNavigate into the directory:
cd reference-data-mcp-serverInstall dependencies:
bun installConfigure environment (optional):
cp .env.example .env
# edit .env if you want to override transport or logging defaultsConfiguration
No API keys are required. All configuration is optional overrides of framework defaults.
Variable | Description | Default |
| Transport: |
|
| Port for HTTP server. |
|
| Host for HTTP server. |
|
| Session mode: |
|
| Auth mode: |
|
| Log level (RFC 5424): |
|
| Directory for log files (Node.js only). |
|
| Enable OpenTelemetry instrumentation (spans, metrics, completion logs). |
|
See .env.example for the full list of optional overrides.
Running the server
Local development
# One-time build
bun run rebuild
# Run the built server
bun run start:stdio
# or
bun run start:httpbun run devcheck # Lint, format, typecheck, security
bun run test # Vitest test suite
bun run lint:mcp # Validate MCP definitions against specDocker
docker build -t reference-data-mcp-server .
docker run --rm -p 3010:3010 reference-data-mcp-serverThe Dockerfile defaults to HTTP transport, stateless session mode, and logs to /var/log/reference-data-mcp-server. OpenTelemetry peer dependencies are installed by default — build with --build-arg OTEL_ENABLED=false to omit them.
Project structure
Directory | Purpose |
|
|
| Static datasets (periodic table, physical constants, HTTP status codes). |
| Tool definitions ( |
| Resource definitions ( |
| Domain service integrations (geo, timezone, elements, constants, units, http-status, mime). |
| Unit tests mirroring |
| Generated docs (tree.md, design.md). |
| Per-version changelog files. |
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 request-scoped logging,ctx.statefor tenant-scoped storageRegister new tools and resources directly in
src/index.tsData integrity: 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
Apache-2.0 — see LICENSE for details.
This server cannot be deployed
Maintenance
Related MCP Connectors
Query SEC EDGAR filings, XBRL financials, and company data through MCP. STDIO & Streamable HTTP.
Search NPPES providers and resolve NUCC specialty codes via MCP over STDIO or Streamable HTTP.
iso-codes MCP — lookups against the Debian iso-codes project JSON.
Official ParseAPI MCP. Place, IP, email, phone, weather, currency lookups.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceSearch artists, releases, recordings, works, and labels; traverse relationships; resolve ISRC/ISWC/barcode; fetch cover art via MCP. STDIO or Streamable HTTP.243 npm1Apache 2.0
- AlicenseNot gradedqualityAmaintenanceGeocode places, fetch global weather forecasts, ERA5 historical climate, marine conditions, air quality, and terrain elevation via MCP. Provides 11 tools over STDIO or Streamable HTTP.476 npm8Apache 2.0
- AlicenseNot gradedqualityAmaintenanceQuery US Treasury national debt, interest rates, exchange rates, and fiscal datasets via MCP with STDIO or Streamable HTTP.315 npm2Apache 2.0
- AlicenseNot gradedqualityAmaintenanceLook up Pokémon, moves, abilities, items, natures, and type matchups from PokéAPI v2 via MCP. Supports STDIO or Streamable HTTP.256 npm1Apache 2.0