swarm-mcp
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 "Install 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-mcpShow 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 Server
An MCP (Model Context Protocol) server that provides access to your Foursquare Swarm check-in data. Use it with Claude Desktop, Claude Code, or any MCP-compatible client to analyze your check-in history.
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": [...]
}Related MCP server: BeeMCP
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.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/alexpriest/swarm-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server