tc39-mcp
Click on "Install 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., "@tc39-mcpshow me the algorithm steps for ToNumber"
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.
tc39-mcp
๐ Docs: mcp.xyzzylabs.ai/tc39 โ Get started ยท Tools ยท Cookbook ยท Editions ยท Architecture ยท Hosting
Independent project โ not an official Ecma International or TC39 publication. Reads the publicly published ECMAScript specs (ECMA-262 + ECMA-402).
Give MCP-speaking AI agents structural access to the JS spec.
Any client that speaks the Model Context Protocol can call
clause.get sec-tonumber and get back parsed JSON (algorithm
steps as discrete arrays, cross-references as ids, signatures as
typed values) instead of being handed a 4 MB spec.html to grep
through. Tools cover ECMA-262
(the core language) and ECMA-402
(the Intl API): clauses, algorithm steps, cross-references both
ways, edition diffs, upstream git history, test262 search,
proposal lookup. Every response is SHA-pinned to a specific
upstream commit so anything an agent cites stays reproducible.
Snapshots resolve through a local cache โ hosted Worker โ
bundled fallback chain. The stdio transport (npx tc39-mcp)
fetches each snapshot from the hosted Cloudflare Worker on a cold
cache, writes it under ~/.cache/tc39-mcp/, and serves it from
disk thereafter โ revalidating only when the local copy is older
than ~4 hours (a conditional If-None-Match request). The npm
package also bundles the latest stable + main editions of both
specs plus the test262 and proposals indexes; when the Worker is
unreachable, those are served straight from the package (the
offline fallback โ not written to the cache). The hosted Worker
is also the HTTP alternative when you want a shared network
endpoint; its R2 data refreshes from upstream every ~4 hours.
Install + first call
Wire it into any MCP client โ the stdio launch command is the same everywhere, only the config file differs:
{
"mcpServers": {
"tc39": { "command": "npx", "args": ["tc39-mcp"] }
}
}A global install works too โ npm i -g tc39-mcp, then run tc39-mcp.
The first run downloads the npm package (latest stable + main editions plus the proposals and test262 indexes are bundled). The first call for a given snapshot fetches it from the hosted Worker and caches it locally; subsequent calls are served from disk, revalidated against the Worker only after the ~4-hour freshness window. If the Worker is unreachable, the bundled editions still answer offline. Then in your client:
use
clause.getto readsec-tonumberand show me the steps
You should see structured JSON back:
{
"meta": {
"id": "sec-tonumber",
"aoid": "ToNumber",
"title": "ToNumber ( argument )",
"number": "7.1.4",
"kind": "op"
},
"signatureRaw": "ToNumber ( _argument_: an ECMAScript language value, ): either a normal completion containing a Number or a throw completion",
"algorithms": [
{ "steps": [
{ "text": "If _argument_ is a Number, return _argument_." },
{ "text": "If _argument_ is either *undefined* or a Symbol, throw a *TypeError* exception." },
{ "text": "If _argument_ is *null*, return *+0*<sub>๐ฝ</sub>." },
"..."
]}
],
"crossrefs": ["sec-tonumber-applied-to-the-string-type", "..."]
}Five-minute walkthrough: docs/getting-started.md.
Related MCP server: w3c-mcp
Hosted HTTP
Point your client at the hosted Cloudflare Worker instead of running a local subprocess โ same MCP protocol, no install:
{
"mcpServers": {
"tc39": {
"type": "http",
"url": "https://mcp.xyzzylabs.ai/tc39/mcp"
}
}
}Traffic is rate-limited to 30 req/min per IP.
What it's good at
Letting an agent reason about the spec without hallucinating. Structured JSON answers ground the model on real spec text: step numbering, cross-reference targets, signature shapes, edition deltas, conformance tests. Anything cited resolves to a specific clause id at a specific SHA โ easy to verify, easy to reproduce.
Finding the clause you want from a hint.
spec.searchranks AOID-exact matches first;spec.symbol_resolvedecodes[[Prototype]]/%Object.prototype%/~enumerate~.Following references both ways.
spec.crossrefsreturns what a clause cites AND who cites it. AOID-densified so bare mentions in step text count, not just<emu-xref>hrefs.include_cross_specresolves 262 โ 402 hops. (Cookbook recipe 1.)Comparing editions and tracking prose drift.
spec.diffbetween any two editions back to ES2016;spec.historywalks the upstream git log via pickaxe search. (Cookbook recipe 2.)Finding test262 coverage for a clause.
test262.searchwith prefix-matchedesid:catchessec-tonumberANDsec-tonumber-applied-to-the-string-typein one call.Mapping proposals to the spec.
proposal.list/proposal.getfrom a structured index oftc39/proposals, covering both ECMA-262 and ECMA-402 (Intl) proposals โ filter byspec. Refreshed on the same 4-hour cadence as the specs.Local cache, bundled fallback (stdio). Once a snapshot is cached under
~/.cache/tc39-mcp/, tool calls are served from disk and only revalidated against the hosted Worker after the ~4-hour freshness window (a conditionalIf-None-Matchrequest that carries the R2 object key, never a clause-id). Bundled editions answer offline when the Worker is unreachable. The hosted Worker is the HTTP alternative for shared / multi-tenant use.
Tools (19 across 5 namespaces)
Goal | Tool(s) |
Verify what's being served |
|
Read a specific clause |
|
Find a clause from a name / symptom |
|
Resolve |
|
Browse / outline |
|
Compare editions / commit history |
|
Walk references (in + out) |
|
Read structured tables |
|
Inspect the grammar |
|
Enumerate well-known intrinsics |
|
Find conformance tests |
|
Look up a proposal |
|
Full reference (input schemas, output types, example calls per
tool): docs/tools.md โ auto-generated from
the schemas so it never drifts.
Specs + editions
Every spec-reading tool accepts spec ("262" or "402", default
"262") and edition (default "latest").
ECMA-262:
es2016โes2026,main. (ES5 / ES5.1 / ES6 have no upstream tags and aren't supported.)ECMA-402:
es2016โes2026,main. (402 publishes each annual edition as anesYYYYbranch rather than a tag; the fetch step resolves a branch or a tag the same way.)Aliases:
latestis spec-aware (each spec โ its current stable release,es2026today).draft/nextโmainon both.
Full table + how to add new releases: docs/editions.md.
Self-hosting snapshots
The stdio server fetches snapshots from the public hosted Worker
at https://mcp.xyzzylabs.ai/tc39/r2/<key> (cache โ
Worker โ bundled fallback), so on a strict-egress network it falls
back to the bundled editions and can't reach the others. Override
the base URL via TC39_MCP_BASE_URL to point at a private mirror
โ useful for strict-egress networks, air-gapped environments, or
running against a self-hosted Worker:
TC39_MCP_BASE_URL=https://my-mirror.example.com npx tc39-mcpThe endpoint just needs to serve the same key structure
(spec-<spec>-<edition>.json, test262-index.json,
proposals-index.json) โ a plain static file server works. If it
returns ETags, the server revalidates with If-None-Match
(cheap 304s); without them it just refetches the full object
when a cached copy goes stale. To populate a mirror, run
npm run parse against a local checkout (see below) and upload
build/*.json to your bucket of choice.
The cache lives at $XDG_CACHE_HOME/tc39-mcp (or
~/.cache/tc39-mcp when XDG_CACHE_HOME is unset).
Build from source (contributors)
End users don't need this โ the npm package and the hosted Worker are the supported surfaces above. This is for working on the server itself.
git clone https://github.com/xyzzylabs/tc39-mcp
cd tc39-mcp
npm install
npm run fetch-spec # ~2 min, ~150 MB โ both specs at every supported edition
npm run parse # spec.html โ build/spec-<spec>-<edition>.json
npm run fetch-test262 # optional, enables test262.* (~300 MB)
npm run build-test262-index
npm run fetch-proposals # optional, enables proposal.* (~50 MB)
npm run build-proposals-index
npm run mcp # start the stdio MCP server against your sourcePoint your MCP client at your local source instead of the published bin:
{
"mcpServers": {
"tc39": {
"type": "stdio",
"command": "npm",
"args": ["run", "--silent", "mcp"],
"cwd": "/abs/path/to/tc39-mcp"
}
}
}
--silentkeeps npm's lifecycle banner off stdout, so the MCP client receives a clean JSON-RPC stream.
Docs
Hosted at mcp.xyzzylabs.ai/tc39
โ searchable, dark-mode-friendly, auto-rebuilt on every refresh so
/snapshots always reflects the live SHAs.
In-repo (also browseable on GitHub):
docs/getting-started.mdโ install โ wire โ first call โ verify. Five minutes.docs/tools.mdโ every tool, every field, every example. Auto-generated from source.docs/cookbook.mdโ multi-tool recipes: cross-spec lookups, prose-drift tracking, grammar/SDO cross-references, test262 coverage, proposal-to-clause mapping.docs/editions.mdโ supported editions + alias resolution.docs/architecture.mdโ data pipeline, parser, cache, memory model.docs/deployment.mdโ local stdio, npm CLI, hosted Cloudflare Worker, refresh model, observability.CONTRIBUTING.mdโ what kinds of changes land easily, what won't.SECURITY.mdโ threat model + responsible disclosure.CHANGELOG.mdโ version history + auto-refresh convention.
Privacy Policy
tc39-mcp is a read-only spec lookup service. The stdio transport
(npx tc39-mcp) sends no telemetry and never transmits your
queries โ snapshots are fetched from the hosted Worker on a cold
or stale cache and served from local disk otherwise; those fetches
carry R2 object keys, never clause-ids or tool arguments. The hosted Cloudflare Worker collects only standard
request metadata (IP for rate limiting, timestamps, request
headers); it does not log request bodies, set cookies, or share
data with third parties.
Full policy: mcp.xyzzylabs.ai/tc39/privacy
For privacy questions, open an issue with the privacy label on
GitHub.
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseDqualityDmaintenanceA Model Context Protocol server that enables LLMs to explore and interact with API specifications by providing tools for loading, browsing, and getting detailed information about API endpoints.Last updated44314ISC
- AlicenseAqualityCmaintenanceMCP Server for accessing W3C/WHATWG/IETF web specifications. Provides AI assistants with access to official web standards data including specifications, WebIDL definitions, CSS properties, and HTML elements.Last updated11612MIT
- AlicenseAqualityCmaintenanceAn MCP (Model Context Protocol) server that provides structured access to ISO 32000 (PDF) specification documents. Enables LLMs to navigate, search, and analyze PDF specifications through well-defined tools.Last updated85802MIT
- Alicense-qualityCmaintenanceMCP server for exploring the ECMAScript specification and its implementation, enabling semantic search of spec sections, JavaScript execution in engine262, and access to a knowledge graph linking spec sections to implementation functions.Last updated22ISC
Related MCP Connectors
MCP server for understanding Javascript internals from ECMAScript specification.
A Model Context Protocol server for Wix AI tools
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yoโฆ
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/xyzzylabs/tc39-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server