swarm-mcp
This server exposes read-only tools for exploring an authenticated user's Foursquare Swarm check-in history.
Browse paginated check-in history, sorted newest/oldest first, with venue info, timestamps, and photos.
Retrieve check-ins within a date range or from the past X days.
Get details for a specific check-in or venue, including ratings, hours, tips, and photos.
Retrieve the entire check-in history with pagination limits.
Compute check-in statistics such as total count, date range, days active, and averages.
List unique venue categories with counts, including parent-category matching.
Find most visited venues, optionally filtered by city, state, country, or category.
Search check-ins using query, category, city, state, country, and date-range filters.
Inspect server metadata, data sources, privacy scope, available tools, and tool costs.
Allows interaction with your Foursquare Swarm account to retrieve check-in history, venue details, and statistics.
Provides tools to access and analyze your Swarm check-in data, including history, stats, top venues, and search with filters.
Click 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., "@swarm-mcp Show me my recent Swarm check-ins"
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.
swarm-mcp
An MCP server over a Foursquare Swarm check-in history, back to the first check-in.
Status
Shipped and maintained. First released December 18, 2025, ten months before Foursquare shipped its own Swarm MCP in October 2026. Re-verified against the live Foursquare API on October 27, 2026: all 11 tools pass.
Related MCP server: BeeMCP
License
MIT
History
Date | Release | What changed |
2025-12-18 | First public release on GitHub and PyPI: check-in history, date ranges, recent check-ins, stats, search | |
2025-12-22 |
| |
2025-12-22 | Category, city, and date filters on search | |
2025-12-22 |
| |
2025-12-23 | Venue details, top venues, state and country filters | |
2026-10-07 | Pinned | |
2026-10-27 | Ported to MCP Python SDK 2.x; tool errors now set |
The commit history and PyPI release history are the public record.
Features
Tool | Description |
| Get paginated check-in history |
| Get check-ins within a specific date range |
| Get check-ins from the past X days |
| Get details about a specific check-in |
| Get venue info: ratings, hours, tips, photos |
| Retrieve your entire check-in history |
| Get statistics (total count, date range, averages) |
| List all unique categories in your history with counts |
| Get your most visited venues with filters |
| Search with filters: query, category, city, state, country, date range |
| Get server metadata, data sources, and tool costs |
All responses include a _meta block with transparency info (completeness, API calls made, data scope) to help AI models make informed decisions about expensive operations.
Tool Costs
Tool | Cost | Notes |
| Low | Single paginated request |
| Low | Single request with date filters |
| Low | Single request with time filter |
| Low | Single check-in lookup |
| Low | Single venue lookup |
| Low | 2 API calls (newest + oldest) |
| High | Scans history to discover unique categories |
| High | Scans history to aggregate venue visits |
| None | Local introspection only |
| High | 1 API call per 250 check-ins |
| High | Client-side filtering; scans up to 5000 items |
Example _meta Response
Every tool response includes metadata like this:
{
"_meta": {
"is_complete": true,
"returned_count": 50,
"total_available": 1847,
"limit_applied": 50,
"api_calls_made": 1,
"data_source": "foursquare_swarm_api",
"data_scope": "authenticated_user_checkins"
},
"checkins": [...]
}Installation
Using uvx (recommended)
uvx swarm-mcpUsing pip
pip install swarm-mcpSetup
1. Get Your Foursquare Access Token
You'll need a Foursquare OAuth2 access token:
Create a new app (or use an existing one)
Note your Client ID and Client Secret
Generate an access token using the OAuth2 flow, or use the API Explorer to get a token quickly
Security: Treat
FOURSQUARE_TOKENlike a password—don't commit it, paste it in issues, or share screenshots with it visible.
2. Configure Your MCP Client
Claude Desktop
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"swarm": {
"command": "uvx",
"args": ["swarm-mcp"],
"env": {
"FOURSQUARE_TOKEN": "your-access-token-here"
}
}
}
}Claude Code
claude mcp add swarm uvx swarm-mcp -e FOURSQUARE_TOKEN=your-access-token-hereOr add manually to your config:
{
"Swarm": {
"command": "uvx",
"args": ["swarm-mcp"],
"env": {
"FOURSQUARE_TOKEN": "your-access-token-here"
}
}
}Usage Examples
Once configured, you can ask Claude things like:
"Show me my recent Swarm check-ins"
"How many times have I checked into coffee shops this year?"
"What are my top 10 most visited coffee shops?"
"Show me all my check-ins in California"
"What are my check-in stats?"
"Get details about [venue name]" (ratings, hours, tips)
"What are the ratings for my favorite restaurants?"
Example Output
📊 SWARM CHECK-IN STATS
=============================================
Total check-ins: 12,456
Years active: 10.2 years
Days active: 3,726
Avg check-ins/day: 3.34
📅 First check-in: March 15, 2014 at Coffee Shop (NYC)
📍 Most recent: Today at Office (San Francisco)Development
# Clone the repo
git clone https://github.com/alexpriest/swarm-mcp.git
cd swarm-mcp
# Install in development mode
pip install -e .
# Run the server
FOURSQUARE_TOKEN=your-token swarm-mcpAPI Reference
This server uses the Foursquare API v2:
License
MIT License - see LICENSE for details.
Available Tools
11 toolsget_all_checkinsA
Get ALL check-ins by paginating through the entire history. EXPENSIVE: Makes 1 API call per 250 check-ins (e.g., 5000 check-ins = 20 API calls). Prefer get_checkins with manual pagination for incremental access.
Inputs: max_checkins.
get_categoriesA
Get all unique venue categories from your check-in history with counts. Useful for discovering what categories exist before filtering. EXPENSIVE: Scans entire history.
Inputs: max_scan.
get_checkin_detailsB
Get detailed information about a specific check-in by ID.
Inputs: checkin_id (required).
get_checkinsB
Get the authenticated user's check-in history. Returns check-ins with venue info, timestamps, and optional photos.
Inputs: sort, limit, offset.
get_checkins_by_date_rangeA
Get check-ins within a specific date range.
Inputs: end_date (required), start_date (required), limit.
get_checkin_statsA
Get statistics about your check-in history (total count, date range, etc.)
Inputs: no named parameters.
get_recent_checkinsC
Get check-ins from the past X days.
Inputs: days, limit.
get_server_infoA
Get information about this MCP server: data sources, privacy scope, available tools, and their costs. Cheap introspection call with no external API requests.
Inputs: no named parameters.
get_top_venuesA
Get your most visited venues with visit counts. EXPENSIVE: Scans check-in history to aggregate venue visits.
Inputs: city, limit, state, country, +2 more.
get_venue_detailsA
Get detailed information about a venue by ID, including ratings, hours, tips, and photos. Venue IDs are included in check-in data.
Inputs: venue_id (required).
search_checkinsA
Search check-ins with flexible filters. EXPENSIVE: Requires client-side filtering. Use filters to narrow results. For comprehensive searches, increase max_scan.
Inputs: city, limit, query, state, +5 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Each tool has a clearly distinct purpose: get_all_checkins vs get_checkins differ in pagination cost, get_checkins_by_date_range vs get_recent_checkins target different time ranges, and others cover categories, stats, venues, and server info. Descriptions explicitly clarify overlaps.
All tool names follow a consistent get_verb_noun pattern in snake_case (e.g., get_all_checkins, get_categories, get_checkin_stats). No mixing of naming conventions, making it easy to infer function.
With 11 tools, the server covers all major retrieval needs for check-in history and venue data without being bloated. The count is well-scoped for a focused analytics domain.
The server provides comprehensive read access: full history, filtered, stats, categories, top venues, and venue details. Missing write/update tools aligns with use case. A minor gap is no direct tool to list check-ins for a specific venue, but search_checkins can approximate this.
Maintenance
Related MCP Connectors
Hosted MCP server for live public-data APIs and Skills for AI agents.
Flight search MCP server providing search, pagination, and itinerary details for AI assistants.
MCP server for Argo RPG Platform — connects AI assistants to campaign data via OAuth2
MCP server for OnceAsk, the AI-native current-address layer for people and agents.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAn MCP server that interfaces with the Rewind.ai SQLite database to provide access to audio transcripts, screen OCR data, and activity tracking. It enables AI models to search personal memory, retrieve past conversations, and analyze application usage history.19-
- AlicenseNot gradedqualityDmaintenanceUnofficial MCP server that bridges AI assistants with Bee wearable lifelogging data, enabling retrieval and management of conversations, facts, todos, and locations.51MIT

PinMeTo Location MCPofficial
AlicenseAqualityBmaintenanceAn MCP server that connects your PinMeTo locations to AI assistants, enabling natural language queries for insights from Google, Facebook, and Apple Maps.1215MIT- FlicenseNot gradedqualityDmaintenanceAn MCP server that integrates AI assistants with the Flickr API, enabling management of photos, albums, groups, and contacts via natural language commands.1-