UCP Client for Python
Installation
Client for Agents
from ucp_client import UCPAgentTools # Initialize UCP tools with your server URL tools = UCPAgentTools(server_url)
Mockup Server
Quickly spin up a local UCP-compliant mock server for development and testing:
# Install the UCP client with server extras uv pip install "ucp-client[server]==0.0.11" # Run the mockup server uv run ucp mockup_server
The mockup server provides a fully functional UCP endpoint at http://localhost:8182 with:
- Product catalog
- Checkout session management
- Mock payment processing
- Order tracking
Perfect for testing your AI agents and UCP integrations locally.