castles MCP Server
Castles, fortresses, palaces and ruins worldwide: search, nearby, fame ranking, statistics. CC0.
castles scores 67 (Good), licensed MIT and written in JavaScript. It can be reached as a remote MCP endpoint. It declares 7 tools. Filed under Knowledge. GitHub shows 1 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
67 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade A
87/100 for listing completeness. Lost points: short README, 1 of 7 tools barely described, short summary.
How quality is graded
Where the 67 comes from
22 + 20 + 1 + 10 + 4 + 10 = 67. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 1 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.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.
{ "mcpServers": { "flightmussy-castlemap-mcp": { "url": "https://thecastlemap.com/mcp" } }}
Environment variables
This server does not declare environment variables.
Tools7Tool docs quality grade D
All capabilitiescastles_neartoolNearest castles to a coordinate (haversine); geocode first
get_castletoolFull record for one castle
get_statisticstoolLive aggregates — totals, per-country, per-century
list_countriestoolEvery country on the map, with counts
random_castletoolOne castle at random
search_castlestoolFind castles by name, country or category
top_castlestoolBest-known castles, by fame rank
About
Castlemap MCP server
A Model Context Protocol server for the
Castlemap atlas: castles, fortresses, palaces and ruins worldwide (the counts move with every release; get_statistics reports the current ones),
with coordinates, founding dates, categories, fame ranking and Wikipedia
summaries.
It is already running. Point a client at the hosted endpoint — there is no install, 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 | Every country on the map, with counts |
get_statistics | Live aggregates — totals, per-country, per-century |
random_castle | One castle at random |
Data
Derived from Wikidata, with summaries from Wikipedia and images from Wikimedia Commons. The atlas is curated rather than exhaustive: it covers castles with a documented history, a real photo and exact coordinates, not every earthwork and ruin.
The factual records are released as CC0 and downloadable as GeoJSON and CSV
from thecastlemap.com/data — also mirrored on
GitHub,
Hugging Face,
Kaggle
and Zenodo (concept DOI
10.5281/zenodo.21322359, which always resolves to the newest version).
Running it yourself
server.mjs has zero dependencies — no SDK, no node_modules. It needs
Node 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_GEOJSON
override that. The file is re-read when its mtime changes (throttled to 60s), so
updating 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. Set
ExecStart to your own node path and ReadOnlyPaths/CASTLES_GEOJSON to
wherever the data lives.
Provenance
Built by flightmussy with AI assistance: the concept, direction and review are mine; much of the implementation was written with Claude. The underlying data is not generated — it comes from Wikidata, and every record is traceable to its Wikidata item.
License
Code: MIT (see LICENSE). Data: CC0. Wikipedia summary text remains CC BY-SA
and is attributed per record.
Frequently asked questions
What is castles MCP Server?
Castles, fortresses, palaces and ruins worldwide: search, nearby, fame ranking, statistics. CC0.
How do I install castles 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. castles MCP Server connects to the remote endpoint https://thecastlemap.com/mcp, so there is nothing to install locally.
Is castles MCP Server free and open source?
Yes. castles MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does castles MCP Server support remote (HTTP) connections?
Yes. castles MCP Server offers a hosted endpoint over Streamable HTTP, so HTTP-capable clients can connect to it without running anything locally.
What tools does castles MCP Server provide?
castles MCP Server provides 7 tools, including castles_near, get_castle, get_statistics, and list_countries. See the full tool list for descriptions and parameters.
How is castles MCP Server's trust score calculated?
castles MCP Server scores 67 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
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.