CityJSON Specification MCP Server
OfficialClick on "Deploy 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., "@CityJSON Specification MCP ServerGet the outline of the CityJSON specification"
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.
CityJSON Specification MCP Server
An MCP (Model Context Protocol) server that provides AI assistants with structured access to the CityJSON specification. Instead of feeding entire specifications to LLMs, this server enables AI to fetch specific chapters on demand.
šŗ Demo
https://github.com/user-attachments/assets/91f0bd61-a313-441c-8def-4e07b8d125be
Related MCP server: ebook-mcp
š Quick Start
Remote Server (Recommended)
Connect directly to the hosted server - no installation required:
https://your-cloud-run-url.run.app/mcpAlternatively, use the community-hosted instance (subject to availability and resource constraints):
https://cj-mcp-264879243442.europe-west4.run.app/mcpLocal Installation
Run locally using npx:
npx @cityjson/cj-mcp@latestOr install globally:
npm install -g @cityjson/cj-mcp@latest
cityjson-spec-mcpš ļø Installation
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"cityjson-spec": {
"command": "npx",
"args": ["-y", "@cityjson/cj-mcp@latest"]
}
}
}Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"cityjson-spec": {
"command": "npx",
"args": ["-y", "@cityjson/cj-mcp@latest"]
}
}
}Add to your VS Code settings:
{
"mcp": {
"servers": {
"cityjson-spec": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@cityjson/cj-mcp@latest"]
}
}
}
}Add to your Windsurf MCP config:
{
"mcpServers": {
"cityjson-spec": {
"command": "npx",
"args": ["-y", "@cityjson/cj-mcp@latest"]
}
}
}šØ Available Tools
cityjson_read_spec_outline
Returns the specification outline with all chapters and sections.
Parameters:
include_sections(boolean, optional): Include section headings within each chapter. Default:true
Example Response:
{
"version": "2.0.1",
"total_chapters": 12,
"chapters": [
{
"id": "introduction",
"title": "Introduction",
"order": 1,
"sections": ["overview", "design-goals", "file-extension"]
}
]
}cityjson_read_spec_chapter
Returns the full Markdown content for a specific chapter.
Parameters:
chapter(string, required): Chapter identifier (e.g.,"metadata","city-objects")
Example:
{
"chapter": "metadata"
}š» Development
# Clone with submodules
git clone --recurse-submodules https://github.com/cityjson/cityjson-spec-mcp.git
cd cityjson-spec-mcp
# Install dependencies
pnpm install
# Build all packages
pnpm build
# Convert specification (requires uv/bikeshed)
pnpm convert-spec
# Start MCP server (stdio mode)
pnpm start:stdio
# Start MCP server (HTTP mode)
pnpm start:http
# Lint and format
pnpm lint
pnpm lint:fixš¦ Project Structure
cityjson-spec-mcp/
āāā packages/
ā āāā spec-converter/ # Bikeshed ā Markdown converter
ā āāā mcp-server/ # MCP server implementation
āāā specs/ # Generated specification files
ā āāā index.json # Chapter metadata index
ā āāā chapters/ # Individual chapter Markdown files
āāā vendor/
ā āāā cityjson-specs/ # Git submodule (CityJSON spec repo)
āāā Dockerfile # Container for Cloud Run deploymentš License
MIT
š Resources
This server cannot be deployed
Maintenance
Related MCP Connectors
Versioned documentation registry and semantic search for AI tools and coding assistants.
Docs Q&A: search 169 data and AI guides, fetch any page as markdown. Read-only, keyless.
Connect your AI assistant to governed tender and RFP dossiers: sources, versions, decisions.
Provides metadata information to AI agents through the search API.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceProvides AI assistants with intelligent access to ML textbook content through RAG-powered search, chapter retrieval, and documentation generation capabilities. Uses local models for privacy-focused, source-grounded responses from indexed technical books.MIT
- AlicenseNot gradedqualityDmaintenanceEnables natural language interaction with e-books, extracting metadata, table of contents, and chapter content from EPUB and PDF files.390Apache 2.0
- FlicenseNot gradedqualityDmaintenanceProvides AI assistants with contextual access to Berlin Group Open Finance API specifications, enabling specification-compliant guidance through semantic search, graph database queries, and document retrieval.1-
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with OpenAPI documents for analysis, validation, and management through structured interfaces.301 npm3ISC