street-generator-mcp

street-generator-mcp

Enables designing and rendering urban street cross-sections from natural language descriptions, and importing real streets from OpenStreetMap.

Category
Visit Server

README

street-generator-mcp

An MCP server that lets Claude design and render urban street cross-sections from natural language, in the visual style of the Street Generator app, figures and all. It can also read a real street from an address via OpenStreetMap.

Example street cross-section

The idea

Claude does the open-ended reasoning (designing the street). The server does the deterministic work (drawing it).

The server holds no LLM, no API keys, and no secrets. It keeps the model's output small (a compact StreetConfig instead of thousands of tokens of hand-drawn SVG) and moves the heavy, exact rendering into code. The result is faster, cheaper, and reliable: every street is drawn by the same renderer, identical every time.

User: "a calm residential street, wide sidewalks, trees, protected bike lanes"
   |
   v
Claude -> StreetConfig (JSON), guided by the tool schema
   |
   |-- render_street(config, style)   -> server draws an illustrated SVG
   |-- build_share_url(config)        -> streetgenerator.com/?s=...
   |
   v
Claude shows the image and the link

Tools

render_street(config, style?)

Renders a StreetConfig to an illustrated SVG cross-section (buildings as floor stacks, sidewalks with pedestrians, planting strips with trees, lanes with cars).

style (optional): colorMode "outline" (default) or "color", plus showLabels, showMeasurements, showFigures (all default true).

import_street_from_osm(street, houseNumber, city, postcode, country, style?)

Reads a real street from OpenStreetMap and renders it. Give a full address (street, house number, city, postcode, country). If any part is missing or unclear, Claude asks first. When several places match, the tool returns lettered candidates (A, B, C) so you can pick one, then it renders the chosen street.

Under the hood: geocode the address (Nominatim), read the nearest street's tags (Overpass), interpret and map them to a StreetConfig, then render. This tool needs internet access; the other two do not.

build_share_url(config)

Returns a streetgenerator.com link that opens the design in the live app, where you can keep editing and export it.

What you get back

Every render returns the cross-section as SVG (which you can save) together with a streetgenerator.com link that opens the same design in the app, where the app's own PNG, SVG, and JSON exports are available. Native PNG output from the server is on the roadmap (see Future work).

Examples

From simple to more complex. You type these to Claude; it calls the tools and shows the result.

Prompt What you get
"Render a two-lane street with sidewalks on both sides." A simple SVG cross-section (two traffic lanes, two sidewalks) and a share link.
"Design a calm residential street with wide sidewalks, street trees, and a protected bike lane on each side." A fuller illustrated SVG with pedestrians, trees, and buffered cycle lanes, plus a share link.
"Draw a boulevard with a central median, bus lanes, and buildings, in colour." A wide coloured cross-section with a median, bus lanes, and building floor stacks.
"Design a one-way street with parking, and hide the width numbers." An SVG with labels but no measurements (a style option), plus a share link.
"Show me the street at Unter den Linden 77, 10117 Berlin, Germany." The real street read from OpenStreetMap and rendered, plus a share link.
"Load the street at Hauptstrasse 1, Germany." (ambiguous address) A lettered list of candidate places (A, B, C) to choose from; pick one and it renders.

Usage and external services

import_street_from_osm queries two free OpenStreetMap services: Nominatim (geocoding) and Overpass (map data). It is meant for occasional, interactive lookups, not bulk downloading. Please stay within their public usage policies:

  • Nominatim: at most 1 request per second, an identifying User-Agent (already set by this server), results cached where possible, and no automated or bulk querying. See the Nominatim usage policy.
  • Overpass: fair use only, roughly up to 10,000 requests and 1 GB of data per day per IP, with rate limiting under load and a 180 second per-request timeout. See the Overpass usage guidance.

For heavy or automated use, run your own Nominatim or Overpass instance instead of the public servers. Map data is copyright OpenStreetMap contributors, available under the ODbL; displayed results should attribute OpenStreetMap accordingly.

Install (Claude Desktop)

{
  "mcpServers": {
    "street-generator": {
      "command": "node",
      "args": ["/absolute/path/to/street-generator-mcp/dist/index.js"]
    }
  }
}

Then ask Claude to design or import a street and it calls the tools automatically.

Develop

npm install
npm test          # unit, mocked-network, and fidelity tests
npm run build     # compile to dist/ and copy figure assets
npm run dev       # run the server from source

How the rendering stays faithful to the app

The layout math, element data, figure art, and the OSM interpreter/mapper are ported value-for-value from the Street Generator app (the interpreter and mapper come with their original unit tests). Fidelity is checked with structural tests in test/.

Future work

  • PNG output from the server (SVG to raster).
  • validate_street against Berlin RASt rules (the engine already exists in the app).
  • Nearest-way selection for OSM import (v1 takes the first street within a radius of the geocoded point).
  • Figures for cycle and bus lanes once art exists.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured