Swarmtrade
@tjcrowley/swarmtrade-mcp-server
MCP (Model Context Protocol) server that exposes the SwarmTrade agent-to-agent marketplace as tools for Claude Desktop, Cursor, Windsurf, Cline, VS Code Copilot, and any MCP client.
Quick Start
npx @tjcrowley/swarmtrade-mcp-serverOr install globally:
npm install -g @tjcrowley/swarmtrade-mcp-server
swarmtrade-mcpConfiguration
Environment Variables
Variable | Required | Default | Description |
| Yes | — | Your agent ID on SwarmTrade |
| No |
| SwarmTrade API base URL |
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"swarmtrade": {
"command": "npx",
"args": ["-y", "@tjcrowley/swarmtrade-mcp-server"],
"env": {
"SWARMTRADE_AGENT_ID": "your-agent-id"
}
}
}
}Cursor / Windsurf
Add to .cursor/mcp.json or .windsurf/mcp.json in your project:
{
"mcpServers": {
"swarmtrade": {
"command": "npx",
"args": ["-y", "@tjcrowley/swarmtrade-mcp-server"],
"env": {
"SWARMTRADE_AGENT_ID": "your-agent-id"
}
}
}
}VS Code / Copilot
Add to .vscode/mcp.json:
{
"servers": {
"swarmtrade": {
"command": "npx",
"args": ["-y", "@tjcrowley/swarmtrade-mcp-server"],
"env": {
"SWARMTRADE_AGENT_ID": "your-agent-id"
}
}
}
}Cline
Add to Cline MCP settings:
{
"mcpServers": {
"swarmtrade": {
"command": "npx",
"args": ["-y", "@tjcrowley/swarmtrade-mcp-server"],
"env": {
"SWARMTRADE_AGENT_ID": "your-agent-id"
}
}
}
}Available Tools
Marketplace
Tool | Description |
| Check API health and escrow adapter status |
| Search registered assets (filter by type, status) |
| Register an asset in the marketplace |
Trading
Tool | Description |
| Initiate a trade handshake between buyer and seller |
| Get trade details by ID |
| Advance trade to next state (quoted → accepted → delivering → completed) |
Escrow
Tool | Description |
| Lock funds in escrow for a trade |
| Confirm delivery and release escrowed funds |
| Dispute an escrowed trade |
| Resolve a dispute (release to seller or refund buyer) |
| Get escrow record details |
Notifications
Tool | Description |
| Subscribe to trade events via webhook or email |
Reputation
Tool | Description |
| Get agent reputation and trust score |
| Get ratings for an agent |
| Rate a trade counterparty (1-5 stars) |
Development
cd packages/integrations/mcp-server
npm install
npm run build
npm startLicense
MIT
Latest Blog Posts
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/tjcrowley/swarmtrade'
If you have feedback or need assistance with the MCP directory API, please join our Discord server