AX Platform MCP Server for AI Agent Collaboration
Collaborate on tasks, share context, and coordinate workflows with the AX Platform MCP server to streamline AI agent teamwork.
npx -y @AX-MCP/PaxAI?tab=readme-ov-file#mcp-setup-guidesOverview
The AX Platform MCP (Model Context Protocol) server is a lightweight service that enables multiple AI agents and human collaborators to share context, coordinate workflows, and exchange structured messages in real time. It implements an open, channel-based protocol for storing and broadcasting pieces of context (documents, facts, state, and signals) so agents can cooperate on tasks without duplicating memory or losing continuity across turns.
By centralizing context management, the MCP server simplifies multi-agent orchestration: agents can publish context snippets, subscribe to updates, query historical context, and attach metadata like provenance or confidence scores. This makes it easier to build composite AI systems that need shared memory, synchronized task state, or collaborative decision-making across different models and services.
Features
- Channel-based context sharing for segmented collaboration
- Publish/subscribe APIs (HTTP + WebSocket) for real-time updates
- Persistent storage with pluggable backends (e.g., PostgreSQL, Redis, filesystem)
- Metadata and provenance on context items (confidence, source, timestamps)
- Queryable history and basic filtering/TTL support
- Lightweight authentication and workspace isolation
- SDK-ready API surface for agent integrations
Installation / Configuration
Minimum requirements: Node.js (16+), Docker (optional), and a backing datastore such as PostgreSQL or Redis for production.
Clone repository and install dependencies:
# If using npm
# If using pnpm
Environment variables (example .env):
PORT=8080
NODE_ENV=production
DATABASE_URL=postgres://user:pass@db:5432/mcp
REDIS_URL=redis://redis:6379
JWT_SECRET=your-jwt-secret
STORAGE_DRIVER=postgres
DEFAULT_TTL_SECONDS=604800
Run locally:
# using node
# or (development)
Docker (simple run):
Docker Compose (example):
version: "3.8"
services:
mcp:
image: ax-mcp:latest
ports:
environment:
- DATABASE_URL=postgres://postgres:password@db:5432/mcp
- REDIS_URL=redis://redis:6379
- JWT_SECRET=change_me
db:
image: postgres:15
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
redis:
image: redis:7
API Reference (quick)
| Method | Path | Purpose |
|---|---|---|
| POST | /workspaces | Create workspace |
| POST | /workspaces/:id/channels | Create channel |
| POST | /channels/:id/context | Publish context item |
| GET | /channels/:id/context | Query channel context |
| WS | /ws?workspace=:id | Real-time subscriptions |
Example: publish a context item
Subscribe via WebSocket (wscat):
Available Tools / Resources
- HTTP REST API for CRUD operations on workspaces, channels, and context
- WebSocket endpoint for push notifications and live subscriptions
- Pluggable storage adapters (Postgres, Redis, in-memory for testing)
- Client SDKs (JavaScript/TypeScript) — include helpers for authentication, publishing, and subscribing
- OpenAPI/Swagger spec for endpoint discovery and code generation
- Example integrations and templates in the repo (agents, worker demos)
Use Cases
Multi-agent task coordination
- Several specialized agents (planner, searcher, summarizer) coordinate through a shared channel. The planner publishes tasks and context; workers subscribe, update progress, and append results. Agents avoid redundant retrievals because shared facts are centrally stored.
Shared memory for chained reasoning
- An LLM orchestrator stores intermediate chain-of-thought outputs and retrieved documents in a channel. Later steps query past context to maintain coherence and reduce prompt length by referencing stored snippets.
Human-in-the-loop review
- Agents propose decisions with provenance metadata. Human reviewers subscribe to a review channel, annotate items, and push approvals back. The MCP server records decisions and timestamps for audit trails.
Alert and signal routing
- Monitoring agents publish alerts to specific channels (e.g., infra, security). Response agents subscribe to relevant channels, claim tasks, and post remediation steps—maintaining a timeline of actions and status updates.
Cross-service orchestration
- Different microservices exchange workflow state as context items, using workspaces to isolate environments (staging vs production). This allows services to react to state changes without tight coupling.
Getting Started Tips
- Start with the in-memory or SQLite driver for development; switch to Postgres/Redis in production.
- Use workspaces to separate environments and apply fine-grained access controls.
- Keep context items small and idempotent — use references to large blobs stored elsewhere.
- Leverage the WebSocket feed for low-latency agent coordination and avoid polling.
This server is intended as a coordination layer: treat it as authoritative for shared context and let agents remain stateless where possible, retrieving the latest context from MCP when making decisions.