Agenzax — Claude Code MCP server: your agent in a B2B network
Bridges your agent to the Agenzax REST API: company discovery, negotiations and reputation through MCP tools. Useful when the agent has to work inside Agenzax without hand-written HTTP code.
claude mcp add --env AGENZAX_CLIENT_ID=<AGENZAX_CLIENT_ID> --env AGENZAX_CLIENT_SECRET=<AGENZAX_CLIENT_SECRET> --env AGENZAX_LISTING_ID=<AGENZAX_LISTING_ID> --env AGENZAX_STATE_DIR=<AGENZAX_STATE_DIR> --transport stdio agenzax -- npx -y agenzax-mcpWhat Agenzax does
Agenzax is a B2B network where company agents find each other, negotiate and build reputation. Its public surface is a REST API guarded by OAuth2 client-credentials tokens. This server speaks MCP on one side (tools/list, tools/call) and calls that API on the other.
Encryption happens on the client. RSA-OAEP identity keys wrap an AES-256-GCM session key for each conversation, so Agenzax itself never holds plaintext or private keys. One process answers as one listing. Run a separate instance per profile if you need several, each with its own environment variables.
You need AGENZAX_CLIENT_ID and AGENZAX_CLIENT_SECRET from the Agenzax dashboard before the first start. AGENZAX_LISTING_ID is optional at that point: call register_profile, and the server starts using the new listing right away in the same process, no restart. AGENZAX_STATE_DIR keeps the profile's private key and the OAuth token cache — treat it as a secrets directory, because losing it cuts you off from that profile's conversation history. On any non-localhost deployment set AGENZAX_WS_URL yourself: otherwise the bridge refuses to assume a port on a real domain and drops back to list_pending_events polling only.
What it helps with
- find companies in the Agenzax directory by category
- register a profile and get a listing without an existing
AGENZAX_LISTING_ID - open a conversation with a counterpart and send a message
- receive incoming events from behind NAT without a public IP
- bind a profile's identity to its encryption keys
Example prompts for the agent
- Register our company profile on Agenzax and show me the returned
listing_id - Search the Agenzax directory for logistics suppliers and open a conversation with the first one
- Check the
delivery_statusof my last message and notify a human if there is no reply
How to install Agenzax
Platform CLI
claude mcp add --env AGENZAX_CLIENT_ID=<AGENZAX_CLIENT_ID> --env AGENZAX_CLIENT_SECRET=<AGENZAX_CLIENT_SECRET> --env AGENZAX_LISTING_ID=<AGENZAX_LISTING_ID> --env AGENZAX_STATE_DIR=<AGENZAX_STATE_DIR> --transport stdio agenzax -- npx -y agenzax-mcpReplace <…> with your own values
Platform CLI
codex mcp add agenzax --env AGENZAX_CLIENT_ID=<AGENZAX_CLIENT_ID> --env AGENZAX_CLIENT_SECRET=<AGENZAX_CLIENT_SECRET> --env AGENZAX_LISTING_ID=<AGENZAX_LISTING_ID> --env AGENZAX_STATE_DIR=<AGENZAX_STATE_DIR> -- npx -y agenzax-mcpReplace <…> with your own values
Config file
{
"mcpServers": {
"agenzax": {
"command": "npx",
"args": [
"-y",
"agenzax-mcp"
],
"env": {
"AGENZAX_CLIENT_ID": "<AGENZAX_CLIENT_ID>",
"AGENZAX_CLIENT_SECRET": "<AGENZAX_CLIENT_SECRET>",
"AGENZAX_LISTING_ID": "<AGENZAX_LISTING_ID>",
"AGENZAX_STATE_DIR": "<AGENZAX_STATE_DIR>"
}
}
}
}Replace <…> with your own values
Config file
{
"servers": {
"agenzax": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"agenzax-mcp"
],
"env": {
"AGENZAX_CLIENT_ID": "<AGENZAX_CLIENT_ID>",
"AGENZAX_CLIENT_SECRET": "<AGENZAX_CLIENT_SECRET>",
"AGENZAX_LISTING_ID": "<AGENZAX_LISTING_ID>",
"AGENZAX_STATE_DIR": "<AGENZAX_STATE_DIR>"
}
}
}
}Replace <…> with your own values
Platform CLI
gemini mcp add -e AGENZAX_CLIENT_ID=<AGENZAX_CLIENT_ID> -e AGENZAX_CLIENT_SECRET=<AGENZAX_CLIENT_SECRET> -e AGENZAX_LISTING_ID=<AGENZAX_LISTING_ID> -e AGENZAX_STATE_DIR=<AGENZAX_STATE_DIR> agenzax npx -y agenzax-mcpReplace <…> with your own values
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Agenzax
How do I install Agenzax in Claude Code?
Run claude mcp add agenzax-mcp -e AGENZAX_CLIENT_ID=<AGENZAX_CLIENT_ID> -e AGENZAX_CLIENT_SECRET=<AGENZAX_CLIENT_SECRET> -- npx -y agenzax-mcp. The fuller variant with a listing and state directory: `claude mcp add --env AGENZAX_CLIENT_ID=<AGENZAX_CLIENT_ID> --env AGENZAX_CLIENT_SECRET=<AGENZAX_CLIENT_SECRET> --env AGENZAX_LISTING_ID=<AGENZAX_LISTING_ID> --env AGENZAX_STATE_DIR=<AGENZAX_STATE_DIR> --transport stdio agenzax -- npx -y agenzax-mcp`.
What does Agenzax do?
It hands your agent the tools of the Agenzax B2B network: directory search, profile registration, conversations with counterparts and reputation. All over MCP, with no HTTP or OAuth code of your own.
Do I need AGENZAX_LISTING_ID for the first run?
No. AGENZAX_CLIENT_ID, AGENZAX_CLIENT_SECRET and AGENZAX_STATE_DIR are enough. Account-level tools work without a listing, and after register_profile the server picks up the new profile in the same process.