GeoWeb logo

Find where any photo or video was taken

GeoWeb runs a full geolocation recon — metadata, OCR, reverse image search, object detection, camera calibration and learned world priors — then names the place with Google Lens, gathers the venue's contacts, sources and photos, and answers your questions in a local chat. Evidence, not just a guess. Everything runs on your machine.

See it in action → Star on GitHub
# clone and run — no third-party installs for the server
git clone https://github.com/halimbahae/geoweb
cd geoweb && python3 web/app.py --open

Analyst in the loop, by design

Most geolocation is a black box. GeoWeb keeps you in control: it raises candidates, shows the evidence, and lets you make the final call.

🧭

Evidence first

EXIF, OCR text & signs, reverse-search near-duplicates, detector crops, horizon calibration and a world-prior map — each with a plain-language caveat.

🧪

Auditable runs

Every step is a real CLI script writing JSON into the session folder. Re-open, re-run, diff and score against ground truth.

📴

Local & open

Stdlib server, no build step, nothing uploaded. MIT-licensed GeoWeb code on top of the vendored GeoINT engine.

Seven demos, ready to run

Five photos and two real video clips ship with the repo — freely licensed and GPS-stripped. Seed them and run the full recon: make demos.

Milan Cathedral
📷 photo Milan Duomo CC BY-SA 4.0
Colosseum, Rome
📷 photo Colosseum, Rome CC0
Shibuya crossing, Tokyo
📷 photo Shibuya, Tokyo CC0
Eiffel Tower, Paris
📷 photo Eiffel Tower, Paris public domain
Taj Mahal, Agra
📷 photo Taj Mahal, Agra CC BY-SA 4.0
Video contact sheet
🎬 video Tokyo street + Colosseum Pexels

Sources & licences: demos/README.md

Save & export, your way

Every session exports to Markdown, HTML, PDF or JSON — branded with the GeoWeb logo and author — and drafts are kept in your browser so nothing is lost between visits.

⬇

Markdown / JSON

The report plus the full recon payload and metadata, straight from the server.

🖨️

HTML / PDF

A self-contained, print-ready page with the logo, the run summary and your report — save as PDF from the browser.

💾

Local drafts

Notes auto-save to browser storage per session; reopen and pick up where you left off.

The console

Sessions, a live job bar, an evidence archive and the final call — in three files and a Leaflet drop-in.

GeoWeb home — sessions
Your archive: sessions newest-first, with status and accuracy.
GeoWeb interactive prior map
The interactive prior map: OSM tiles or the exact prior snapshot, GeoCLIP clusters sized by mass, and the model's point guess.

Videos too

Drop a clip; GeoWeb cuts it into a contact sheet of distinct frames (scene change + dHash dedupe), you pick one, and recon runs exactly as for a photo.

GeoWeb video frames tab
Frames tab: contact sheet, timestamps, “use this frame”.

From pixels to people

A world-prior model can hand you a country at 9 % confidence. The step that actually names a place is a reverse image search — so GeoWeb automates it, then follows the name to the sources a human would open by hand.

🔍

Google Lens fallback

Runs by itself when a recon ends without an answer: overview sentence, exact vs visual matches, screenshot. If Google walls the browser the status says blocked and the console hands you the photo plus a paste box — never a fabricated result.

🔗

Sources dossier

The venue's own website, address, phone and e-mail, socials, press mentions and photographs — off-topic hits dropped by name relevance. “No phone published” is said plainly.

💬

Ask, don't dig

The console is chat-first: “what phone does the venue publish?”, “how sure are we, and why?”. Answers come only from this session's files, through a local Ollama model.

Hands for your AI agent

GeoWeb ships a Model Context Protocol server. Point your assistant — ChatGPT, Claude, opencode, Cursor, Codex, Copilot CLI or Grok — at your archive and ask in plain language.

1

Run the server

One stdio command. Nothing is installed globally — uv fetches the MCP SDK on the fly.

GEOWEB_ROOT=~/geoweb-photos uv run /path/to/geoweb/mcp/geoweb_mcp.py
2

Paste the config into your agent

Pick your assistant, hit Copy, drop it in the file shown, then restart the app.

// opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "geoweb": {
      "type": "local",
      "command": ["uv", "run", "/path/to/geoweb/mcp/geoweb_mcp.py"],
      "environment": { "GEOWEB_ROOT": "~/geoweb-photos" },
      "enabled": true
    }
  }
}

Or run opencode mcp add geoweb and follow the prompts.

# Claude Code — one command (user scope)
claude mcp add geoweb --scope user \
  --env GEOWEB_ROOT=~/geoweb-photos \
  -- uv run /path/to/geoweb/mcp/geoweb_mcp.py
// Claude Desktop — claude_desktop_config.json
{
  "mcpServers": {
    "geoweb": {
      "command": "uv",
      "args": ["run", "/path/to/geoweb/mcp/geoweb_mcp.py"],
      "env": { "GEOWEB_ROOT": "~/geoweb-photos" }
    }
  }
}

Remote MCP (SSE) is also supported for Claude web/desktop connectors — see the ChatGPT tab.

# Expose GeoWeb over SSE, then add it as a Connector
GEOWEB_ROOT=~/geoweb-photos uv run /path/to/geoweb/mcp/geoweb_mcp.py \
  --transport sse --port 8989

# ChatGPT → Settings → Connectors → Advanced → Developer mode
# Add MCP server URL:  http://127.0.0.1:8989/sse

ChatGPT (and Claude web) reach the server over HTTP — expose the port with a tunnel such as cloudflared or ngrok. Same URL works for any remote-MCP client.

// .cursor/mcp.json  (project) or ~/.cursor/mcp.json
{
  "mcpServers": {
    "geoweb": {
      "command": "uv",
      "args": ["run", "/path/to/geoweb/mcp/geoweb_mcp.py"],
      "env": { "GEOWEB_ROOT": "~/geoweb-photos" }
    }
  }
}
# ~/.codex/config.toml
[mcp_servers.geoweb]
command = "uv"
args = ["run", "/path/to/geoweb/mcp/geoweb_mcp.py"]
env = { GEOWEB_ROOT = "~/geoweb-photos" }
// ~/.copilot/mcp-config.json
{
  "mcpServers": {
    "geoweb": {
      "type": "local",
      "command": "uv",
      "args": ["run", "/path/to/geoweb/mcp/geoweb_mcp.py"],
      "env": { "GEOWEB_ROOT": "~/geoweb-photos" },
      "tools": ["*"]
    }
  }
}
# ~/.grok/config.toml
[mcp_servers.geoweb]
command = "uv"
args = ["run", "/path/to/geoweb/mcp/geoweb_mcp.py"]
env = { GEOWEB_ROOT = "~/geoweb-photos" }

sessions / session

List and read any session, its jobs and recon summary.

start_recon / recon_status

Kick off a quick or full recon, watch it finish.

frames / read_file

Inspect video frames and any artifact inside a session.

Full guide with every client: mcp/README.md

How a run goes

  1. Upload a photo or clip — the server byte-copies and checksums it into a session folder.
  2. Recon quick (no ML) or full (world-prior models). Steps land live in the job bar with digests.
  3. Read the evidence — metadata, OCR, reverse-search sheets, detector crops, calibration, the prior map.
  4. Decide and finish — record country/region/city/coords/confidence, write a report, keep the archive.

What's new

Shipped in Unreleased — the full history lives in CHANGELOG.md.

Live demo

Static pages only — the console itself runs on your machine because your photos never leave it.

Quickstart API docs MCP guide