
Security News
Lovable’s OJ Rewrites Vite’s Dev Server in Rust as AI Lowers the Cost of Forking Open Source
Lovable’s OJ rewrites Vite’s dev server in Rust, reducing memory use and preview times as AI lowers the cost of open source reimplementation.
@cyanheads/reference-data-mcp-server
Advanced tools
Look up countries, timezones, periodic table elements, physical constants, units, HTTP status codes, and MIME types via MCP. STDIO or Streamable HTTP.
Look up countries, timezones, periodic table elements, physical constants, units, HTTP status codes, and MIME types via MCP. STDIO or Streamable HTTP.
Public Hosted Server: https://reference-data.caseyjhand.com/mcp
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.
| Tool | Description |
|---|---|
ref_geo_lookup | Look up a country by name, ISO alpha-2, or alpha-3 code. |
ref_geo_search | Search and filter countries by region, subregion, language, or currency. |
ref_timezone_lookup | Get timezone info by IANA ID, country code, or city name. |
ref_timezone_convert | Convert a local datetime from one timezone to another. |
ref_element_lookup | Look up a periodic table element by name, symbol, or atomic number. |
ref_element_search | Filter periodic table elements by category, group, period, or property range. |
ref_constant_lookup | Look up a CODATA 2022 physical constant by name, symbol, or alias. |
ref_unit_convert | Convert a numeric value between compatible units of measure. |
ref_http_status | Look up an HTTP status code by number or keyword. |
ref_mime_type | Look up a MIME type by type string or file extension. |
| Resource | Description |
|---|---|
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). |
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.
ref_geo_lookup toolauto (alpha2 → alpha3 → name), name, alpha2, alpha3; numeric ISO codes are not supportedref_geo_search toolno_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)truncated flag and totalMatches count when results are cut offref_timezone_lookup toolauto (IANA ID → country code → city name), iana, country; partial city matching ("Tokyo" → "Asia/Tokyo", "NY" → "America/New_York")at (ISO 8601) evaluates DST state at a specific moment instead of now; malformed values raise invalid_atref_timezone_convert tooldatetime 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 namesinvalid_datetime; unrecognized zones as invalid_timezoneref_element_lookup toolauto (atomic number → symbol → name), name, symbol, numberatomic_mass_estimated flag), electron configuration, group/period/block, category, Pauling electronegativity, density, melting/boiling points in kelvin, phase at STP, radioactivity, natural occurrence, discovery datanull for experimentally inaccessible propertiesref_element_search toolno_filters error otherwise): category (partial match), group (1–18), period (1–7), atomic-number range, or atomic-mass rangetotalMatches count and a notice when nothing matchesref_constant_lookup toolmatch_strategy discriminates how the query resolved: exact_symbol, exact_name, or fuzzy (closest candidate — verify before reuse)exact flag for defined constants), CODATA identifier, and up to 3 related constantsref_unit_convert toolmt is the metric tonne (1000 kg); t is the US short ton (907.18 kg) — distinct units, easily confusedincompatible_units (mismatched quantities), unknown_unit (unrecognized abbreviation), below_absolute_zero (with the Kelvin equivalent)ref_http_status toolref_mime_type toolref://countries/{alpha2} resourceapplication/json — same fields as ref_geo_lookupalpha2 accepts either case; an unmatched code returns a notFound errorref://elements/{number} resourceapplication/json — same fields as ref_element_lookupnumber must be an integer string 1–118; out-of-range or unmatched values return notFoundref://timezones/{iana_id} resourceapplication/json — same fields as ref_timezone_lookup, plus evaluated_at%2F (e.g. America%2FNew_York); an unencoded slash matches a separate catch-all that returns an actionable error with the correctly encoded URIBuilt 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:
Agent-friendly output:
reason codes (no_match, no_filters, unknown_unit, incompatible_units, below_absolute_zero, invalid_timezone, invalid_datetime, invalid_at) with actionable recovery hintstruncated flag on search results, alternatives arrays on MIME/HTTP keyword matches, atomic_mass_estimated flag on element data, match_strategy on constant lookupsnull for genuinely unknown or inapplicable values rather than absent fieldsA 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"
}
}
}
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
git clone https://github.com/cyanheads/reference-data-mcp-server.git
cd reference-data-mcp-server
bun install
cp .env.example .env
# edit .env if you want to override transport or logging defaults
No API keys are required. All configuration is optional overrides of framework defaults.
| Variable | Description | Default |
|---|---|---|
MCP_TRANSPORT_TYPE | Transport: stdio or http. | stdio |
MCP_HTTP_PORT | Port for HTTP server. | 3010 |
MCP_HTTP_HOST | Host for HTTP server. | 127.0.0.1 |
MCP_SESSION_MODE | Session mode: stateful, stateless, or auto (schema default auto resolves to stateful). | stateless |
MCP_AUTH_MODE | Auth mode: none, jwt, or oauth. | none |
MCP_LOG_LEVEL | Log level (RFC 5424): debug, info, notice, warning, error. | info |
LOGS_DIR | Directory for log files (Node.js only). | <project-root>/logs |
OTEL_ENABLED | Enable OpenTelemetry instrumentation (spans, metrics, completion logs). | false |
See .env.example for the full list of optional overrides.
# 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 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.
| Directory | Purpose |
|---|---|
src/index.ts | createApp() entry point — registers tools/resources and inits services. |
src/data/ | Static datasets (periodic table, physical constants, HTTP status codes). |
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). |
tests/ | Unit tests mirroring src/. |
docs/ | Generated docs (tree.md, design.md). |
changelog/ | Per-version changelog files. |
See CLAUDE.md for development guidelines and architectural rules. The short version:
try/catch in tool logicctx.log for request-scoped logging, ctx.state for tenant-scoped storagesrc/index.tsIssues are welcome. Run checks and tests before submitting:
bun run devcheck
bun run test
Apache-2.0 — see LICENSE for details.
FAQs
Look up countries, timezones, periodic table elements, physical constants, units, HTTP status codes, and MIME types via MCP. STDIO or Streamable HTTP.
The npm package @cyanheads/reference-data-mcp-server receives a total of 232 weekly downloads. As such, @cyanheads/reference-data-mcp-server popularity was classified as not popular.
We found that @cyanheads/reference-data-mcp-server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Lovable’s OJ rewrites Vite’s dev server in Rust, reducing memory use and preview times as AI lowers the cost of open source reimplementation.

Security News
It has been one year since Shai-Hulud made its first appearance on npm.

Research
/Security News
Operators behind PolinRider used a compromised GitHub account to plant malware in four development versions of a Packagist package with 700,000+ downloads.