Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"xap": {
"args": [
"-y",
"@agenticamem/xap-mcp"
],
"command": "npx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Settlement objects for autonomous agent commerce.
Run this in your terminal to verify the server starts. Then let us know if it worked — your result helps other developers.
uvx 'xap-sdk' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
Checked xap-sdk against OSV.dev.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in ai-ml / finance
Persistent memory using a knowledge graph
Real-time financial market data: stocks, forex, crypto, commodities, and economic indicators
Privacy-first. MCP is the protocol for tool access. We're the virtualization layer for context.
An open-source AI agent that brings the power of Gemini directly into your terminal.
MCP Security Weekly
Get CVE alerts and security updates for Xap MCP Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
Settlement objects for autonomous agent commerce.
XAP is the only protocol combining schema validation, cryptographic signatures, enforced state machines, idempotency, governed receipts, and replayable reasoning into one governed object model.
pip install xap-sdk
For MCP integration (Claude, Cursor, any MCP-compatible AI):
pip install xap-sdk[mcp]
import asyncio
from xap import XAPClient
# Create two agents — sandbox uses fake money, no external services needed
provider = XAPClient.sandbox(balance=0)
consumer = XAPClient.sandbox(balance=100_000) # $1,000.00
consumer.adapter.fund_agent(str(provider.agent_id), 0)
provider.adapter = consumer.adapter
# Provider registers a capability with SLA guarantees
provider_identity = provider.identity(
display_name="SummarizeBot",
capabilities=[{
"name": "text_summarization",
"version": "1.0.0",
"pricing": {"model": "fixed", "amount_minor_units": 500, "currency": "USD", "per": "request"},
"sla": {"max_latency_ms": 2000, "availability_bps": 9950},
}],
)
consumer.discovery.register(provider_identity)
# Consumer discovers and negotiates
results = consumer.discovery.search(capability="text_summarization")
offer = consumer.negotiation.create_offer(
responder=provider.agent_id,
capability="text_summarization",
amount_minor_units=500,
)
accepted = provider.negotiation.accept(offer)
# Settle with full decision provenance
async def settle():
settlement = consumer.settlement.create_from_contract(
accepted_contract=accepted,
payees=[{"agent_id": str(provider.agent_id), "share_bps": 10000}],
)
locked = await consumer.settlement.lock(settlement)
result = await consumer.settlement.verify_and_settle(
settlement=locked,
condition_results=[{
"condition_id": "cond_0001",
"type": "deterministic",
"check": "output_delivered",
"passed": True,
}],
)
# Every decision is deterministically replayable
assert consumer.receipts.verify_replay(result.verity_receipt)
print(f"Settlement: {result.receipt['outcome']}")
print(f"Replay verified: {result.verity_receipt['replay_hash']}")
return result
asyncio.run(settle())
What separates XAP from every other agent protocol is Step 2 — trust verified before money moves:
from xap import XAPClient
from xap.verify import verify_manifest
async def find_trusted_agent(capability: str, min_success_rate_bps: int = 9000):
client = XAPClient.sandbox()
# Step 1 — DECLARE: query the registry
results = client.discovery.search(
capability=capability,
min_success_rate_bps=min_success_rate_bps,
include_manifest=True,
)
for agent in results:
# Step 2 — VERIFY: replay Verity receipts to confirm claimed track record
manifest = agent["manifest"]
verification = await verify_manifest(
manifest=manifest,
sample_receipts=3,
)
if verification.confirmed:
print(f"Agent {agent['agent_id']} verifie
... [View full README on GitHub](https://github.com/agentra-commerce/xap-sdk#readme)