Flightmussy

Castlemap MCP server

Community Flightmussy
Updated

MCP server for the Castle Map atlas (thecastlemap.com): castles, fortresses, palaces and ruins from Wikidata as read-only tools. Hosted, no API key: https://thecastlemap.com/mcp

Castlemap MCP server

A Model Context Protocol server for theCastlemap atlas: 2,400 castles, fortresses and palaces across 131 countries,with coordinates, founding dates, categories, fame ranking and Wikipediasummaries.

It is already running. Point a client at the hosted endpoint — there is noinstall, no signup and no API key:

https://thecastlemap.com/mcp

Streamable HTTP, stateless, POST-only (a GET returning 405 is correct).Protocol revisions 2025-06-18 and 2025-03-26 are accepted.

Client configuration

{
  "mcpServers": {
    "castles": {
      "type": "http",
      "url": "https://thecastlemap.com/mcp"
    }
  }
}

Registry entry: com.thecastlemap/castles.

Tools

Tool What it does
search_castles Find castles by name, country or category
get_castle Full record for one castle
castles_near Nearest castles to a coordinate (haversine); geocode first
top_castles Best-known castles, by fame rank
list_countries The 131 countries, with counts
get_statistics Live aggregates — totals, per-country, per-century
random_castle One castle at random

Data

Derived from Wikidata, with summaries fromWikipedia and images from Wikimedia Commons. The atlas is curated rather thanexhaustive: it covers castles with a documented history, a real photo and exactcoordinates, not every earthwork and ruin.

The factual records are released as CC0 and downloadable as GeoJSON and CSVfrom thecastlemap.com/data — also mirrored onGitHub,Hugging Face,Kaggleand Zenodo (DOI10.5281/zenodo.21322360).

Running it yourself

server.mjs has zero dependencies — no SDK, no node_modules. It needsNode 18+ and a castles.geojson to read (download one from/data):

CASTLES_GEOJSON=/path/to/castles.geojson PORT=8891 node server.mjs

It binds 127.0.0.1:8891 by default; HOST, PORT and CASTLES_GEOJSONoverride that. The file is re-read when its mtime changes (throttled to 60s), soupdating the data needs no restart.

castlemap-mcp.service is the systemd unit used in production — loopback-bound,DynamicUser, ProtectSystem=strict, with nginx terminating TLS in front. SetExecStart to your own node path and ReadOnlyPaths/CASTLES_GEOJSON towherever the data lives.

Provenance

Built by Alban Zaja with AI assistance: the concept,direction and review are mine; much of the implementation was written withClaude. The underlying data is not generated — it comes from Wikidata, and everyrecord is traceable to its Wikidata item.

License

Code: MIT (see LICENSE). Data: CC0. Wikipedia summary text remains CC BY-SAand is attributed per record.

MCP Server · Populars

MCP Server · New

    PanStudio

    ZulipChat MCP Server

    ZulipChat MCP Server - A Model Context Protocol server that bridges AI agents with Zulip Chat. Built with FastMCP for lightning-fast performance, featuring comprehensive chat management and intelligent summarization. Transform your Zulip workspace into an AI-powered collaboration hub!

    Community PanStudio
    United-Compute

    GPU Price Tracker: open data

    This project tracks the market prices and performance metrics of various GPUs.

    Community United-Compute
    Graphify-Labs

    graphify

    Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.

    Community Graphify-Labs
    superdesigndev

    Treg (OpenRouter for Tools)

    OpenRouter for agent tools. Join community here: https://discord.gg/6mQYYfFMAn

    Community superdesigndev