Screeps World MCP Service
Integrates live Screeps game data into AI development workflows, providing comprehensive tools for room operations, market analysis, and user management. It enables AI agents to monitor game status and interact with the game world through the Model Context Protocol.
README
Screeps World MCP Service
Integrates live Screeps server data directly into AI development workflows.
Features
- Comprehensive API Coverage: Room operations, user data, market information, map analytics, and utilities
- AI-Optimized: Enhanced responses with loop detection, caching, and completion indicators
- Rate Limit Aware: Monitoring and guidance to prevent API limit issues
- TypeScript: Full type safety with zod schema validation
- MCP Protocol: Compatible with MCP-enabled clients
Setup
- Install dependencies:
npm install
- Configure your Screeps credentials:
cp .env.example .env
# Edit .env with your Screeps config
- Build the project:
npm run build
- Start the service:
npm start
Configuration
The service can be configured via environment variables or constructor parameters:
SCREEPS_BASE_URL: API base URL (defaults to official server)SCREEPS_TOKEN: Your Screeps authentication tokenSCREEPS_USERNAME: Your Screeps username (optional)
Getting Your Screeps Token
- Go to Screeps Account Settings
- Create a new auth token
- Add it to your
.envfile
Development
Run TypeScript in watch mode:
npm run dev
Format code with Prettier:
npm run format
Usage Examples
After completing the setup, add to your mcp.json:
{
"mcpServers": {
"screeps-world": {
"command": "node",
"args": ["/path/to/screeps-world-mcp/dist/index.js"],
"env": {
"SCREEPS_TOKEN": "${env:SCREEPS_TOKEN}"
}
}
}
}
AI Usage Guidelines
- Follow Response Guidance: Each response includes completion indicators and suggested next steps
- Avoid Redundant Calls: The server detects and warns against repetitive identical calls
- Start with Resources: Get foundational data (version, shards) before using tools for specific queries
- Respect Rate Limits: Monitor remaining API calls shown in responses
Available Resources
Resources provide static or server-wide data:
- auth_me: Current authenticated user information
- game_time: Current game time and tick information
- world_size: World dimensions and size information
- shards_info: Information about available shards
- user_world_status: Current user world status and statistics
- market_stats: Market statistics and trading information
- version: API version and server information
Available Tools
Tools allow interactive queries with parameters:
Room Information
- get_room_terrain: Get terrain information for a specific room
- get_room_objects: Get objects and users in a specific room
- get_room_overview: Get room overview and statistics
- get_room_status: Get room status information
Market Information
- get_market_orders_index: Get market orders index
- get_my_market_orders: Get user's market orders
- get_market_orders: Get market orders for a specific resource
- get_money_history: Get user money transaction history
User Data
- get_user_name: Get user name
- get_user_stats: Get user statistics with optional interval
- get_user_rooms: Get user rooms by user ID
- find_user: Find user by ID or username
- get_user_overview: Get user overview statistics with interval and stat filtering
- get_user_memory: Get user memory data
- execute_console_command: Execute console command in Screeps
Map & Analytics
- get_map_stats: Get map statistics for specified rooms
Experimental Features
- get_pvp_info: Get PvP information
- get_nukes_info: Get active nukes information by shard
Utilities
- calculate_distance: Calculate distance between two rooms
- auth_signin: Sign in to Screeps to get authentication token
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
E2B
Using MCP to run code via e2b.