Skip to content
MCP server
RegistryRemote

reference-data-mcp-server MCP Server

Countries, timezones, elements, constants, units, HTTP status, MIME types, and Unicode lookup.

reference-data-mcp-server scores 71 (Good), licensed Apache-2.0 and written in TypeScript. It can be reached as a remote MCP endpoint. It declares 12 tools. Filed under Uncategorized. GitHub shows 1 stars. Package registries report about 1,296 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by cyanheadsApache-2.0TypeScript1 stars
Trust score
71Good
Trust score 71 of 100, Good

Good trust

71 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: apache-2.0.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 71 comes from

22 + 20 + 5 + 10 + 4 + 10 = 71. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity5 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 5 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "cyanheads-reference-data-mcp-server": {      "command": "npx",      "args": [        "-y",        "@cyanheads/reference-data-mcp-server@0.4.0"      ],      "env": {        "MCP_LOG_LEVEL": "info"      }    }  }}

Environment variables

NameRequiredNotes
MCP_LOG_LEVELOptionalSets the minimum log level for output (e.g., 'debug', 'info', 'warn').
MCP_TRANSPORT_TYPEOptionalSelects the HTTP transport.
MCP_HTTP_HOSTOptionalThe hostname for the HTTP server.
MCP_HTTP_PORTOptionalThe port to run the HTTP server on.
MCP_HTTP_ENDPOINT_PATHOptionalThe endpoint path for the MCP server.
MCP_AUTH_MODEOptionalAuthentication mode to use: 'none', 'jwt', or 'oauth'.
MCP_LOG_LEVELOptionalSets the minimum log level for output (e.g., 'debug', 'info', 'warn').

Tools12Tool docs quality grade F

All capabilities

About

Version License Docker MCP SDK npm TypeScript Bun

Install in Claude Desktop Install in Cursor Install in VS Code

Framework

Public Hosted Server: https://reference-data.caseyjhand.com/mcp


Overview

Countries, timezones, periodic table elements, physical constants, units, HTTP status codes, MIME types, and Unicode characters in one place. Look up, search, and convert across all of them, entirely offline with no API keys or rate limits.

Tools

ToolDescription
ref_geo_lookupLook up a country by name, ISO alpha-2, or alpha-3 code.
ref_geo_searchSearch and filter countries by region, subregion, language, or currency.
ref_timezone_lookupGet timezone info by IANA ID, country code, or city name.
ref_timezone_convertConvert a local datetime from one timezone to another.
ref_element_lookupLook up a periodic table element by name, symbol, or atomic number.
ref_element_searchFilter periodic table elements by category, group, period, or property range.
ref_constant_lookupLook up a CODATA 2022 physical constant by name, symbol, or alias.
ref_unit_convertConvert a numeric value between compatible units of measure.
ref_http_statusLook up an HTTP status code by number or keyword.
ref_mime_typeLook up a MIME type by type string or file extension.
ref_unicode_lookupIdentify every code point in a string, or look up code points by U+XXXX or decimal number.

Resources

ResourceDescription
ref://countries/{alpha2}Full country record by ISO alpha-2 code.
ref://elements/{number}Full element record by atomic number.
ref://timezones/{iana_id}Timezone info by IANA ID (slashes percent-encoded as %2F).
skill://reference-data-guide/SKILL.mdAgent guide for resolving locations and converting meeting times across DST transitions.

The three reference families have five URI templates. Two catch unencoded slashes in timezone IDs and return the encoded URI to retry. Each template variable is percent-decoded once, so ref://countries/%55%53 reads US. A malformed escape returns a validation error. The guide is a separate skill resource.

Reference 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.

The reference-data guide is included in plugin installs and available through MCP resource discovery or the Skills extension (skills/list and skills/get). It covers location resolution, repeated-hour disambiguation, and search-completeness gates.


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 supported
  • Returns capital, region/subregion, languages, currencies, calling codes, TLD, flag emoji, and IANA timezone IDs

ref_geo_search tool

  • At least one filter required (no_filters error 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); truncated flag and totalMatches count when results are cut off
  • Empty result set returns a notice echoing the applied filters

ref_timezone_lookup tool

  • Lookup modes: auto (two-letter country code, then IANA ID, city name, and location name), iana (the same matching without the country-code step), country (ISO alpha-2 code only)
  • Use a whole city or IANA location name, such as Melbourne, New York, or St Lucia. A shared city name returns every matching zone. Exact spelling distinguishes San Jose from San José.
  • 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 raise invalid_at
  • Returns current/standard UTC offsets, DST status and abbreviations, major cities, and country codes

ref_timezone_convert tool

  • datetime must be a local ISO 8601 string without an offset (regex-enforced, e.g. 2026-05-24T15:30:00); from_tz/to_tz accept full IANA IDs or unambiguous city names
  • Out-of-range calendar dates and spring-forward DST gaps return invalid_datetime. Ambiguous city names return invalid_timezone with candidate IDs. Use an explicit ID for conversion.
  • Returns 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, number
  • Atomic-number queries must be strings of ASCII digits from 1 to 118. Leading zeros are accepted (for example, 006 for Carbon).
  • Full property set: atomic mass (atomic_mass_estimated flag), electron configuration, group/period/block, category, Pauling electronegativity, density, melting/boiling points in kelvin, phase at STP, radioactivity, natural occurrence, discovery data
  • Data sourced from PubChem/IUPAC 2024; synthetic or unstable elements return null for experimentally inaccessible properties

ref_element_search tool

  • At least one filter required (no_filters error otherwise): category (partial match), group (1–18), period (1–7), atomic-number range, or atomic-mass range
  • Valid 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 totalMatches count 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_strategy discriminates how the query resolved: exact_symbol, exact_name, or fuzzy (closest candidate — verify before reuse)
  • Returns value, SI unit expression, absolute/relative uncertainty (exact flag for defined constants), CODATA identifier, and up to 3 related constants

ref_unit_convert tool

Unit spellings are case-sensitive. The tool supports 23 measures.

MeasureUnit spellings
Lengthmm, cm, m, km, in, ft, ft-us, yd, mi
Aream2, ha, ac
Massmcg, mg, g, kg, oz, lb, mt, t
Volumemm3, cm3, ml, cl, dl, l, kl, m3, km3, tsp, Tbs, in3, fl-oz, cup, pnt, qt, gal, ft3, yd3
Volume flow ratel/s, m3/s, gal/min
Countea, dz
TemperatureC, F, K, R
Times, min, h
Speedm/s, km/h, kph, mph, m/h, mi/h, knot, ft/s
Pacemin/km, min/mi
PressurePa, kPa, MPa, hPa, bar, torr, psi, ksi
CurrentA, mA, kA
VoltageV, mV, kV
EnergyJ, kJ, mWh, Wh, kWh, MWh, GWh
PowerW, mW, kW, MW, GW
Reactive powerVAR, kVAR
Apparent powerVA, kVA
Reactive energyVARh, kVARh
FrequencyHz, kHz, MHz, GHz, THz, rpm, deg/s, rad/s
Illuminancelx, ft-cd
Digital storageb, Kb, Mb, Gb, Tb, B, KB, MB, GB, TB
Parts perppm, ppb, ppt, ppq
Angledeg, rad, grad, arcmin, arcsec
  • Mass mt is the metric tonne (1000 kg); t is the US short ton (907.18 kg) — distinct units, easily confused
  • Speed accepts mph and mi/h for mile per hour (the library's own spelling is m/h) and kph for km/h; from_unit and to_unit echo the spelling the caller sent
  • Typed errors: incompatible_units (mismatched quantities), unknown_unit (unrecognized abbreviation), below_absolute_zero (with the Kelvin equivalent), result_out_of_range (a converted result larger in magnitude than a double holds)

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_unicode_lookup tool

  • auto parses code points when every token uses U+ notation. Otherwise it inspects literal text. A query such as 0x200B 0x200C, 65 768, or 200B also gets a notice explaining how to request the intended code points.
  • Choose text for literal characters, decimal for decimal values, or code_point for space- or comma-separated hexadecimal values written as U+XXXX, 0xXXXX, \u{XXXX}, or bare hex.
  • Pass by: "text" for any text the caller did not write itself: auto reads text made only of U+ tokens as the code points they name, so a string that happens to read U+202E is reported as that bidi override, not as its six characters (interpreted_as reports the reading used)
  • Each code point returns its Unicode name (or code point label and aliases), general category, code point type, block, script, whitespace/default-ignorable/bidi-control/invisible flags, UTF-8 and UTF-16 encodings, NFC/NFD/NFKC/NFKD forms, and its grapheme cluster index
  • summary describes the whole input: code point and grapheme cluster counts, UTF-16 and UTF-8 lengths, well_formed, and the invisible_indices and bidi_control_indices of every hidden character
  • query holds up to 4,096 code points; paging is by code point: limit default 32, a value above 128 returns 128 with a notice, and truncated and next_offset continue from the next code point
  • Display safety: char is null for code points that do not display safely (controls, format and bidi controls, separators, combining marks, spaces, default-ignorable, private-use, surrogate, noncharacter, reserved), and the text output shows \u{XXXX} for them
  • A malformed token, an empty token list, or a value above U+10FFFF raises invalid_code_point; U+0041, reads as U+0041 in auto, while a U+ token with more than 6 hex digits fails

ref://countries/{alpha2} resource

  • Full country record as application/json — same fields as ref_geo_lookup
  • alpha2 accepts either case; an unmatched code returns country_not_found

ref://elements/{number} resource

  • Full element record as application/json — same fields as ref_element_lookup
  • After percent-decoding once, number must consist of ASCII digits and represent an atomic number from 1 to 118. Leading zeros are accepted. Malformed or out-of-range values return invalid_atomic_number.

ref://timezones/{iana_id} resource

  • Timezone record as application/json — same fields as ref_timezone_lookup, plus evaluated_at
  • Encode every slash in the ID as %2F. For example, reading ref://timezones/America/Argentina/Buenos_Aires returns unencoded_slash with the fully encoded URI to retry.
  • Runtime-supported IANA links such as US/Eastern also work. An unknown ID returns invalid_timezone.

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
  • Eight 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), unicode (Unicode Character Database 18.0.0, bundled)

Agent-friendly output:

  • Tool and resource failures carry a typed reason and recovery guidance. Modeled input errors and misses log at notice. Human-readable messages show non-displayable caller characters as Unicode escapes.
  • Discriminated outputs where relevant — truncated flag on search results, alternatives arrays on MIME/HTTP keyword matches, atomic_mass_estimated flag on element data, match_strategy on constant lookups
  • Consistent null for 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. It serves Streamable HTTP; each client takes its own config shape.

For Claude Code:

claude mcp add --transport http reference-data-mcp-server https://reference-data.caseyjhand.com/mcp

For Cline (cline_mcp_settings.json):

{
  "mcpServers": {
    "reference-data-mcp-server": {
      "type": "streamableHttp",
      "url": "https://reference-data.caseyjhand.com/mcp"
    }
  }
}

For Cursor (mcp.json):

{
  "mcpServers": {
    "reference-data-mcp-server": {
      "url": "https://reference-data.caseyjhand.com/mcp"
    }
  }
}

Claude Desktop adds remote servers under Settings → Connectors.

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/mcp

Prerequisites

  • Bun v1.4.4 or higher (or Node.js v24+).
  • No API keys required — this server is entirely self-contained.

Installation

  1. Clone the repository:
git clone https://github.com/cyanheads/reference-data-mcp-server.git
  1. Navigate into the directory:
cd reference-data-mcp-server
  1. Install dependencies:
bun install
  1. Configure environment (optional):
cp .env.example .env
# edit .env if you want to override transport or logging defaults

Configuration

No API keys are required. All configuration is optional overrides of framework defaults.

VariableDescriptionDefault
MCP_TRANSPORT_TYPETransport: stdio or http.stdio
MCP_HTTP_PORTPort for HTTP server.3010
MCP_HTTP_HOSTHost for HTTP server.127.0.0.1
MCP_SESSION_MODESession mode: stateful, stateless, or auto (schema default auto resolves to stateful).stateless
MCP_AUTH_MODEAuth mode: none, jwt, or oauth.none
MCP_LOG_LEVELLog level (RFC 5424): debug, info, notice, warning, error.info
LOGS_DIRDirectory for log files (Node.js only).<project-root>/logs
OTEL_ENABLEDEnable OpenTelemetry instrumentation (spans, metrics, completion logs).false

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:http
bun run devcheck   # Lint, format, typecheck, security
bun run test       # Vitest test suite
bun run lint:mcp   # Validate MCP definitions against spec

Docker

docker build -t reference-data-mcp-server .
docker run --rm -p 3010:3010 reference-data-mcp-server

The 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

DirectoryPurpose
src/index.tscreateApp() entry point — registers tools/resources and inits services.
src/data/Static datasets (periodic table, physical constants, HTTP status codes, generated Unicode Character Database modules).
src/mcp-server/tools/Tool definitions (*.tool.ts).
src/mcp-server/resources/Resource definitions (*.resource.ts).
src/services/Domain service integrations (geo, timezone, elements, constants, units, http-status, mime, unicode).
tests/Unit tests mirroring src/.
docs/Generated docs (tree.md, design.md).
changelog/Per-version changelog files.

Development guide

See CLAUDE.md for development guidelines and architectural rules. The short version:

  • Handlers throw, framework catches — no try/catch in tool logic
  • Use ctx.log for request-scoped logging, ctx.state for tenant-scoped storage
  • Register new tools and resources directly in src/index.ts
  • Data 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 test

License

Apache-2.0 — see LICENSE for details.

The bundled Unicode Character Database data is © Unicode, Inc. and licensed under the Unicode License V3; the license text is in NOTICE.

Frequently asked questions

What is reference-data-mcp-server MCP Server?

Countries, timezones, elements, constants, units, HTTP status, MIME types, and Unicode lookup.

How do I install reference-data-mcp-server MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. reference-data-mcp-server MCP Server runs locally from the npm package @cyanheads/reference-data-mcp-server with the command npx -y @cyanheads/reference-data-mcp-server@0.4.0.

Is reference-data-mcp-server MCP Server free and open source?

Yes. reference-data-mcp-server MCP Server is released under the Apache-2.0 license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does reference-data-mcp-server MCP Server support remote (HTTP) connections?

Yes. reference-data-mcp-server MCP Server offers a hosted endpoint over Streamable HTTP, so HTTP-capable clients can connect to it without running anything locally.

What tools does reference-data-mcp-server MCP Server provide?

reference-data-mcp-server MCP Server provides 12 tools, including ctx.log, ref_constant_lookup, ref_element_lookup, and ref_element_search. See the full tool list for descriptions and parameters.

How is reference-data-mcp-server MCP Server's trust score calculated?

reference-data-mcp-server MCP Server scores 71 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server