all.source includes 27 MCP (Model Context Protocol) tools that enable AI agents like Claude to interact with your event store autonomously.
What is MCP?
MCP is Anthropic's open protocol for AI tool use. It lets AI assistants call external tools and APIs in a standardized way. all.source implements an MCP server that exposes our entire API as tools.
Available Tools
Event Management
mcp_ingest_event- Create new eventsmcp_query_events- Search events with filtersmcp_get_entity_state- Reconstruct entity statemcp_time_travel- Query state at any timestamp
Projections
mcp_create_projection- Define materialized viewsmcp_list_projections- See all projectionsmcp_rebuild_projection- Reprocess from scratch
Schema Management
mcp_register_schema- Add JSON schemasmcp_validate_event- Check event against schemamcp_list_schemas- Browse schema registry
Analytics
mcp_event_frequency- Time-bucketed countsmcp_correlation_analysis- Find related eventsmcp_stats_summary- Aggregate statistics
Claude Desktop Setup
Add all.source to your Claude Desktop config:
{
"mcpServers": {
"allsource": {
"command": "allsource-mcp",
"args": ["--url", "http://localhost:3900"],
"env": {
"ALLSOURCE_API_KEY": "your-api-key"
}
}
}
}Example Conversations
You: "Show me all user signups from last week"
Claude: Uses mcp_query_events to search for user.signed_up events
"Found 847 signup events from the past 7 days. The peak was Tuesday with 156 signups. Here's the distribution by day..."
You: "Create a projection that counts events by type"
Claude: Uses mcp_create_projection
"I've created a projection called 'event_type_counter' that will maintain running counts for each event type. It's now processing historical events and will be ready in a few seconds."
You: "What was the order state when the payment failed?"
Claude: Uses mcp_time_travel
"At the moment of payment failure (2026-02-05T10:30:00Z), the order state was: status='pending', items=[...], total=$127.50. The payment attempt was the 3rd event in this order's history."
Why This Matters
Traditional APIs require developers to write integration code. With MCP, AI agents can:
- Explore your data autonomously
- Create projections on demand
- Run ad-hoc analytics
- Debug issues with natural language
Your event store becomes a conversational interface.
Get Started
The MCP server is included with all.source. Enable it in your config:
[mcp]
enabled = true
port = 3901
