/semantic-site:semantic-sitefrom semantic-site — static semantic websites with WebMCP on every page
Generates a static website from CSV, JSON, JSON-LD, or RDF data, producing HTML pages with schema.org JSON-LD, a static JSON API, and WebMCP tools for in-browser agents. Useful for creating portals, catalogues, or explorers for datasets or knowledge graphs hosted as plain files on GitHub Pages, Cloudflare, or Netlify.
Ships in semantic-site — static semantic websites with WebMCP on every page. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
One command turns a site.json and its data files into a folder of plain files:
| Layer | What every site gets |
|---|---|
| Content | A home page with search, one page per collection (filters, sort), one page per item (fields, links, back-links), content pages from Markdown, an Agents & API page, a 404 page. Every list is in the HTML too, so pages work without JavaScript. |
| Linked data | schema.org JSON-LD in every page; the whole site as api/dataset.jsonld. RDF sources keep their predicate IRIs. |
| Static API | api/index.json (the site described), api/<collection>/index.json, api/<collection>/<id>.json, api/search.json, api/openapi.json, api/tools.json, llms.txt, sitemap.xml. CORS headers for hosts that read _headers. |
| WebMCP | Every page registers tools with document.modelContext.registerTool (WebMCP draft of 24 November 2026): get_site_info, search, list_items, get_item, get_facets, get_current_page, open_page everywhere, show_items on collection pages, show_search on the home page, run_sparql and get_example_queries when a SPARQL endpoint is configured. |
WebMCP is not optional: every page this skill produces registers tools. A
page added by hand must load assets/boot.js (see "Custom pages" below), and
site-check fails a page that registers none.
Requires Node 20 or newer. No packages to install. Scripts live in this skill's
directory, scripts/.
node <skill-dir>/scripts/inspect.mjs data/people.csv data/graph.nt
It prints each source's records, RDF classes with counts, and per field: type, coverage, distinct values, samples and predicate IRI. Decide from it:
prefix, doi, id); default the IRI's last segment, then the row number.title, name, label, prefLabel…Inputs the reader takes: .csv, .tsv, .json (array, {items|data|records}, or
JSON-LD), .jsonld (compacted; prefixes, terms and @vocab are expanded, remote
contexts are not fetched), .ndjson/.jsonl, .nt, .nq. Convert anything else
first: Turtle or RDF/XML with any RDF tool (riot --output=nt, rdflib, rete export); a SPARQL endpoint with a CONSTRUCT saved as N-Triples; a spreadsheet as CSV.
node <skill-dir>/scripts/inspect.mjs <sources> --draft > site.json gives a start.
A complete small example is the plugin's example/ folder (a CSV of vocabularies
linked to an N-Triples graph of publishers). The full reference is
reference/config.md. The essentials:
{
"title": "Semantic Web vocabularies",
"description": "Twelve vocabularies, who publishes them, where their specs live.",
"baseUrl": "https://example.org/vocabularies/",
"collections": [
{ "id": "vocabularies", "source": "data/vocabularies.csv", "key": "prefix", "label": "name",
"type": "DefinedTermSet", "fields": { "publisher": { "link": "publishers" } } },
{ "id": "publishers", "source": "data/publishers.nt",
"rdfType": ["https://schema.org/Organization"], "key": "name", "type": "Organization" }
],
"pages": [{ "path": "about", "title": "About", "source": "content/about.md" }]
}
Set baseUrl once the address is known: JSON-LD identifiers, sitemap.xml,
canonical links and llms.txt become absolute. Without it everything is relative
and still works from any folder.
node <skill-dir>/scripts/build.mjs site.json --out dist
node <skill-dir>/scripts/serve.mjs dist # http://127.0.0.1:8080/
node <plugin-dir>/skills/site-check/scripts/check.mjs dist
The build prints each collection's facets and columns, the page and file counts,
the tools per page kind and any warnings; read them and adjust site.json. It
refuses to overwrite a non-empty folder it did not write (--force overrides).
serve.mjs is enough for WebMCP: http://localhost is a secure context. In the
browser console, pageTools.tools lists the page's tools and
await pageTools.call('search', { query: 'skos' }) runs one, with or without
WebMCP in the browser. To see the tools as an agent does, use Chrome with
chrome://flags/#enable-webmcp-testing and the Model Context Tool Inspector
extension.
check.mjs must pass before the site is published. It checks every page
(title, description, JSON-LD, local links, WebMCP), the API (every list, item
and page file, counts, search rows), and runs every read-only tool of every page
kind against the built files.
The output folder is the whole site. Hosting notes for GitHub Pages, Cloudflare,
Netlify, Hugging Face Spaces and buckets are in reference/hosting.md.
Commit site.json, the data and the content; rebuild dist/ in CI rather than
committing it.
theme.accent, theme.accent2 (and …Dark) in site.json; light and dark follow the system and a toggle.kicker, intro (Markdown on the home page), pages (Markdown or HTML fragments), links (footer)."static": "public" copies a folder into the site root (images, a CNAME, extra scripts).webmcp.scripts; each default-exports (env) => [tools] and is loaded on every page. How to write good tools: the webmcp-tools skill."sparql": { "endpoint": "…", "examples": [{ "title": "…", "query": "…" }] } adds run_sparql and get_example_queries. Any SPARQL 1.1 endpoint that allows CORS works (a rete gateway, Fuseki, QLever, Wikidata…).untrustedContentHint, so an agent treats it as data, not instructions. Set "webmcp": { "untrustedContent": false } only when every word on the site is the owner's own.A page written by hand inside the site keeps the contract when its head has:
<meta name="site-root" content="../"> <!-- path to the site root -->
<script type="application/json" id="page-context">{"kind":"page","title":"My page"}</script>
<script type="module" src="../assets/boot.js"></script>
site.json, the data or the content and rebuild.check.mjs says as it says it; do not call a site done with errors.reference/config.md (opens in a new tab)reference/hosting.md (opens in a new tab)scripts/build.mjs (opens in a new tab)scripts/inspect.mjs (opens in a new tab)scripts/lib/emit.mjs (opens in a new tab)scripts/lib/markdown.mjs (opens in a new tab)scripts/lib/model.mjs (opens in a new tab)scripts/lib/read.mjs (opens in a new tab)scripts/lib/render.mjs (opens in a new tab)scripts/serve.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
static-site-generator, linked-data, webmcp, rdf, knowledge-graph
npx claudepluginhub caviri/rete --plugin semantic-site3 skills in this plugin
/site-checkCheck a built static site before publishing — every page has a title, description, valid JSON-LD, working local links and WebMCP tools; the static JSON API (api/index.json, lists, items, search, OpenAPI) is complete and consistent; and every read-only WebMCP tool runs. Use after building a site with semantic-site, before deploying any static site that should be WebMCP ready, or when asked to verify, audit or debug such a site./webmcp-toolsAdd WebMCP tools to any web page or web app, so an agent in the browser can read and act on what the user sees through the page itself (document.modelContext.registerTool). Use when making a page, site, dashboard or app "WebMCP ready" or "agent ready", when writing, reviewing or debugging WebMCP tools, or when adding custom tools to a site built with the semantic-site skill.Other plugins' skills for the same job