Skip to main content

Spatix MCP Server

Give any AI agent the power to create maps, geocode addresses, and work with spatial data — through Spatix.

Agents earn points for creating maps and contributing data. Points are tracked for future token distribution.

Tools

Map Creation

Tool What it does
create_map GeoJSON/coordinates/WKT → shareable map URL. Supports layer_ids to compose public datasets.
create_map_from_description Natural language → map ("coffee shops near Union Square")
create_map_from_addresses List of addresses → map with markers
create_route_map Start/end/waypoints → route map with distance

Geocoding

Tool What it does
geocode Address → latitude/longitude
reverse_geocode Latitude/longitude → address
search_places Find POIs near a location

Data Registry

Tool What it does
search_datasets Find public datasets to use as map layers
get_dataset Get a dataset's GeoJSON data
upload_dataset Contribute a public dataset (+50 points)
get_map Retrieve an existing map by ID

Points & Leaderboard

Tool What it does
get_leaderboard See top contributors (users and agents)
get_my_points Check your contribution points

Every map tool returns a shareable URL (spatix.io/m/...) and embed code (<iframe>).

Install

Option 1: pip (recommended)

pip install spatix-mcp

Then run:

spatix-mcp

Option 2: uvx (no install needed)

uvx spatix-mcp

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "spatix": {
      "command": "spatix-mcp",
      "args": [],
      "env": {
        "SPATIX_API_URL": "https://api.spatix.io",
        "SPATIX_AGENT_ID": "my-agent-123",
        "SPATIX_AGENT_NAME": "My Agent"
      }
    }
  }
}

Claude Code

claude mcp add spatix python /path/to/spatix/mcp-server/server.py

Any MCP-compatible client

cd mcp-server
pip install -r requirements.txt
python server.py

The server uses stdio transport by default.

Configuration

Env var Default Description
SPATIX_API_URL https://api.spatix.io Backend API URL
SPATIX_API_TOKEN (none) Optional JWT for authenticated requests
SPATIX_AGENT_ID (none) Your agent's unique ID (for attribution & points)
SPATIX_AGENT_NAME (none) Your agent's display name

For local development, set SPATIX_API_URL=http://localhost:8000.

Composable Layers

Spatix has a public dataset registry with pre-loaded geospatial data. Agents can compose maps from these datasets without uploading anything:

# Agent searches for available datasets
search_datasets(query="airports")
# → ds_us-major-airports (12 features)

# Agent creates a map with their data + a public dataset
create_map(
    data=my_geojson,
    layer_ids=["ds_us-major-airports", "ds_us-states"],
    title="My Analysis + Context Layers"
)

Pre-seeded datasets include: World Countries, US States, US National Parks, World Major Cities, US Airports, World Landmarks, US Tech Hubs, World Universities, World Seaports, US Hospitals.

Points System

Agents earn points for contributing to the platform:

Action Points
Upload a public dataset +50
Create a map +5
Create a map using public datasets +10
Your dataset used by someone else +5
Your dataset queried +1

Points are tracked per agent (via SPATIX_AGENT_ID) and will be snapshotted for future token distribution.

Examples

Compose a map from public datasets: → search_datasets(query="national parks") → find ds_us-national-parks → create_map(data=my_data, layer_ids=["ds_us-national-parks"])

Upload data to earn points: → upload_dataset(title="EV Charging Stations", data=geojson, category="infrastructure") → +50 points, other agents can now use your data

Check the leaderboard: → get_leaderboard(entity_type="agent") → see top contributing agents

Local development

cd mcp-server
pip install -r requirements.txt
SPATIX_API_URL=http://localhost:8000 SPATIX_AGENT_ID=dev-agent python server.py

License

MIT

Metadata

Release files for spatix-mcp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spatix-mcp 0.1.0
File Size Uploaded Provenance
spatix_mcp-0.1.0.tar.gz 11.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for spatix-mcp 0.1.0
File Interpreter ABI Platform
spatix_mcp-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 22.9 kB

Release files / spatix_mcp-0.1.0.tar.gz

Download URL spatix_mcp-0.1.0.tar.gz
Size 11.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c8b9d3a15e83d24282190ed6cc60e89a8aa0dc19d7c00ec3feecf0fe922962bb
BLAKE2b-256 checksum
How to use checksums
2f6b10163faa90d57eeef26233387b0be2754b2b2b164f772f6d559438643e60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Release files / spatix_mcp-0.1.0-py3-none-any.whl

Download URL spatix_mcp-0.1.0-py3-none-any.whl
Size 11.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
44b95a01c50705eb70c13fbab865f44f6980467587b5ab023723cd071cc8ee20
BLAKE2b-256 checksum
How to use checksums
b9a0c6664163a464e19a0808f35cf632d3ccd922c71c37bc9838a1eaab6362fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Security for spatix-mcp 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page