npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

socialmapper-mcp-server

v1.0.0

Published

MCP server for SocialMapper spatial analysis API

Downloads

9

Readme

SocialMapper MCP Server

A Model Context Protocol (MCP) server that provides AI assistants with access to SocialMapper's spatial analysis capabilities.

Overview

SocialMapper is a powerful spatial analysis platform that helps understand community accessibility patterns, demographic distributions, and Points of Interest (POI) relationships. This MCP server exposes SocialMapper's functionality to AI assistants like Claude Code.

Features

🏢 POI Analysis

  • Discover Points of Interest within travel time constraints
  • Support for 10+ POI categories (libraries, hospitals, schools, parks, etc.)
  • Travel time analysis with walking, biking, and driving modes

📊 Census Integration

  • Access to comprehensive US Census demographic data
  • Block group and ZCTA geographic levels
  • Population, income, housing, and education variables

🎬 Demo Scenarios

  • Pre-built analysis scenarios for common use cases
  • Urban equity analysis
  • Food desert identification
  • Healthcare accessibility studies

📈 Results Management

  • Track analysis progress in real-time
  • Export results in multiple formats (CSV, GeoJSON, Parquet)
  • Interactive map visualizations

Installation

Prerequisites

  1. Python 3.11+ with uv package manager
  2. SocialMapper API server running locally
  3. Census API Key (free from api.census.gov)

Quick Start

  1. Install the MCP server package:

    npm install -g @socialmapper/mcp-server
  2. Start the SocialMapper API server:

    # Navigate to your SocialMapper installation
    cd path/to/socialmapper/socialmapper-api
       
    # Set environment variables
    export SOCIALMAPPER_API_MCP_ENABLED=true
    export SOCIALMAPPER_API_CENSUS_API_KEY=your_census_api_key
       
    # Start the server
    uv run uvicorn api_server.main:app --host 0.0.0.0 --port 8000
  3. Add to Claude Code:

    claude mcp add socialmapper-local --scope user -- npx @socialmapper/mcp-server

Available Tools

Core Analysis

  • analyze_location - Submit location-based accessibility analysis
  • get_analysis_status - Check analysis job progress
  • get_results - Retrieve completed analysis results

Metadata

  • get_poi_types - List available POI categories and types
  • get_census_variables - Get available demographic variables

Demo & Examples

  • get_demo_scenarios - View available demo analyses
  • run_demo_scenario - Execute pre-built demo scenarios

Results Management

  • list_results - List all completed analyses

Usage Examples

Once connected to Claude Code, you can use natural language:

  • "What types of places can SocialMapper analyze?"
  • "Analyze libraries within 15 minutes walking distance of downtown Denver"
  • "Show me available demographic variables for census analysis"
  • "Run a demo scenario to see how accessibility analysis works"
  • "Check the status of my analysis job"
  • "Show me the results of my completed analysis"

Configuration

Environment Variables

Set these in your SocialMapper API server environment:

# Required
SOCIALMAPPER_API_MCP_ENABLED=true
SOCIALMAPPER_API_CENSUS_API_KEY=your_api_key

# Optional
SOCIALMAPPER_API_MCP_AUTH_ENABLED=false
SOCIALMAPPER_API_MCP_RATE_LIMIT_PER_MINUTE=60
SOCIALMAPPER_API_MCP_TOOL_TIMEOUT=30

Advanced Configuration

For custom server URLs or advanced settings, see the full documentation.

Troubleshooting

Common Issues

  1. "Server not responding"

    • Ensure SocialMapper API server is running on localhost:8000
    • Check that MCP is enabled in server configuration
  2. "Census API errors"

    • Verify your Census API key is valid
    • Check the key is properly set in environment variables
  3. "Tool not found"

    • Restart Claude Code after adding the MCP server
    • Verify the server was added with correct scope

Debug Mode

Run with debug logging:

SOCIALMAPPER_API_LOG_LEVEL=DEBUG uv run uvicorn api_server.main:app --reload

Development

Local Development

  1. Clone the SocialMapper repository
  2. Navigate to socialmapper-api/
  3. Install dependencies: uv pip install -e .
  4. Start development server: uv run uvicorn api_server.main:app --reload

Contributing

See CONTRIBUTING.md for development guidelines.

License

MIT License - see LICENSE file.

Support

Related