MCP Server
The Agent Wallet MCP server is the primary integration point for AI agents. It exposes wallet capabilities as tools that any MCP-compatible client can discover and use — Claude Desktop, Cursor, Windsurf, n8n, or your own custom agent. The server is remote and hosted athttps://mcp.fd.xyz. There’s nothing to install, no local processes to run, and no infrastructure to manage.
What is MCP?
MCP (Model Context Protocol) is an open standard by Anthropic for connecting AI assistants to external tools and data sources. Think of it as a universal adapter — any MCP-compatible client can connect to any MCP server and discover what it can do. Agent Wallet publishes wallet operations as MCP tools. When your AI agent connects, it automatically discovers all available capabilities and can use them through natural language.Connection Details
| Property | Value |
|---|---|
| Server URL | https://mcp.fd.xyz |
| Transport | Streamable HTTP |
| Authentication | OAuth Authorization Code Flow with PKCE |
Setup
Add the Agent Wallet MCP server to your client’s configuration:- Claude Desktop
- Cursor
- Windsurf
- Claude Code
Edit your config file:Restart Claude Desktop. A browser window will open for authentication on first connect.
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Verify the Connection
After configuring your client, verify the agent can reach the wallet:“What Finance District tools do you have?”The agent should list the available wallet capabilities. Then try:
“What’s my wallet balance?”If you see your balance (even if it’s zero), the connection is working.
Capabilities
The MCP server exposes wallet operations as tools that your agent discovers automatically. Rather than documenting specific tool names (which may evolve), here’s what your agent can do once connected:Query Operations
- Check balances — view holdings across all tokens and chains
- Get wallet info — wallet addresses, supported chains, configuration
- View transaction history — recent transactions with details
- Check swap quotes — preview exchange rates before committing
Transaction Operations
- Transfer tokens — send to any address on any supported chain
- Swap tokens — exchange between token pairs with best-rate routing
- Commerce payments — pay Prism-enabled merchants via x402
- Yield operations — explore and deploy funds to yield opportunities
The agent discovers all available tools dynamically. As new capabilities are
added to the MCP server, your agent gets access to them automatically — no
config changes needed.
Authentication
Authentication uses OAuth Authorization Code Flow with PKCE — the same standard used by major web applications:- Your MCP client connects to
https://mcp.fd.xyz - The server responds with an OAuth authorization URL
- Your client opens a browser window
- You log in with your District Pass (email + confirmation code)
- The OAuth flow completes and your client receives a token
- Subsequent requests use this token automatically
Error Handling
Common scenarios your agent may encounter:| Error | Meaning | Resolution |
|---|---|---|
| Authentication failed | OAuth token expired or revoked | Re-authenticate through browser flow |
| Insufficient balance | Wallet doesn’t have enough tokens for the operation | Fund the wallet with more tokens |
| Transaction failed | On-chain error (gas, nonce, network issue) | Retry — transient errors resolve on retry |
| Unsupported chain/token | Requested operation on an unsupported chain or token | Check Supported Networks |