ap2-mcp-server
Implement AP2 MCP servers — payment tools exposed via Model Context Protocol for agent access to payment capabilities. Use when building MCP-based payment tool integrations for AP2.
Best use case
ap2-mcp-server is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Implement AP2 MCP servers — payment tools exposed via Model Context Protocol for agent access to payment capabilities. Use when building MCP-based payment tool integrations for AP2.
Teams using ap2-mcp-server should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/ap2-mcp-server/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How ap2-mcp-server Compares
| Feature / Agent | ap2-mcp-server | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Implement AP2 MCP servers — payment tools exposed via Model Context Protocol for agent access to payment capabilities. Use when building MCP-based payment tool integrations for AP2.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# AP2 MCP Server Integration ## Before writing code **Fetch live docs**: 1. Fetch `https://ap2-protocol.org/specification/` for MCP server references 2. Fetch `https://ap2-protocol.org/topics/ap2-a2a-and-mcp/` for MCP integration details 3. Fetch `https://ap2-protocol.org/roadmap/` to check MCP server availability status 4. Web-search `site:github.com google-agentic-commerce AP2 MCP server` for MCP implementations ## Conceptual Architecture ### AP2 + MCP While AP2's primary integration is with A2A (agent-to-agent), it also integrates with **MCP (Model Context Protocol)** for tool-based access to payment capabilities: - **A2A** — Agent-to-agent: Shopping Agent ↔ Merchant Agent communication - **MCP** — Agent-to-tool: Agent accessing payment APIs as tools ### MCP's Role in the Stack MCP provides the foundational layer for connecting agents to external resources: ``` Agent ├── A2A → Other Agents (Merchant, CP, MPP) └── MCP → Payment Tools (APIs, databases, services) ``` ### AP2 MCP Server The AP2 MCP server exposes payment-related tools that agents can call: - Payment method management tools - Mandate creation and signing tools - Transaction status tools - Receipt retrieval tools ### Roadmap Status The AP2 roadmap includes: - **V0.1**: A2A extension (primary), MCP server v0.1 - **V1.x**: MCP-based implementation sequence diagrams, expanded MCP support Check the latest roadmap and GitHub for current MCP server availability. ### MCP Tool Patterns for Payments > **Note**: The following tool names are entirely **speculative/hypothetical examples** illustrating what an AP2 MCP server might expose. They are **not from any published AP2 MCP server specification or implementation**. Always check the latest AP2 roadmap and GitHub repositories for actual MCP tool definitions. Hypothetical AP2 MCP tools: | Tool | Description | |------|-------------| | `list_payment_methods` | Get available payment methods for a user | | `create_intent_mandate` | Build an Intent Mandate from shopping parameters | | `create_cart_mandate` | Build a Cart Mandate from product/price details | | `validate_mandate` | Verify mandate signatures and contents | | `process_payment` | Submit a payment for processing | | `get_transaction_status` | Check payment processing status | | `get_receipt` | Retrieve a payment receipt | ### When to Use MCP vs A2A for Payments | Scenario | Use | |----------|-----| | Agent calling another agent (Merchant, CP) | A2A | | Agent calling a payment API/tool directly | MCP | | Multi-step agent negotiation | A2A | | Simple payment status check | MCP | | Complex multi-party flow | A2A | | Tool-based payment method query | MCP | ### Integration Architecture ``` Shopping Agent ├── A2A → Merchant Agent ├── A2A → Credentials Provider Agent ├── MCP → Payment Tools Server └── MCP → Product Catalog Server ``` ### Best Practices - Use A2A for multi-party payment flows (the primary AP2 pattern) - Use MCP for single-call tool operations (status checks, receipts) - Don't expose raw payment credentials through MCP tools - Follow the same security model (VDCs, signing) regardless of transport - Check the roadmap for MCP server maturity before relying on it - Test MCP tools alongside A2A flows for consistency Fetch the latest roadmap and any published MCP server implementations for exact tool schemas and availability before implementing.
Related Skills
mpp-server-middleware
Implement MPP server-side middleware for Hono, Express, Next.js, and Elysia. Use when protecting API routes with HTTP 402 payment gates, configuring payment methods, or setting up the Mppx server instance.
nlweb-mcp-server
Expose NLWeb as an MCP (Model Context Protocol) server — JSON-RPC 2.0 endpoint at /mcp, the `ask` / `list_sites` / `who` tools, MCP protocol version 2024-11-05, and integration with ChatGPT, Claude, Gemini, and other agent clients. Use when wiring NLWeb to an AI agent via MCP or building an MCP client that consumes an NLWeb site.
a2a-server
Build an A2A server — the agent-side endpoint that receives JSON-RPC requests, processes tasks, manages state, and returns results. Use when implementing the server side of an A2A agent.
woo-testing
Test WooCommerce extensions — PHPUnit unit/integration tests, WP test suite, WooCommerce test helpers, E2E with Playwright, and WP-CLI test scaffolding. Use when writing tests for WooCommerce plugins or setting up a test environment.
woo-shipping
Build WooCommerce shipping methods — WC_Shipping_Method, shipping zones, shipping classes, rate calculation, tracking, and integration with carriers. Use when creating custom shipping integrations or configuring shipping logic.
woo-setup
Install WooCommerce, configure the development stack, and set up a local dev environment with WP-CLI, Docker, or wp-env. Use when setting up a new WooCommerce project or development environment.
woo-security
Implement WooCommerce security — nonces, capabilities, input sanitization, output escaping, data validation, PCI compliance considerations, and WordPress security best practices. Use when hardening a WooCommerce store or reviewing security posture.
woo-plugin-dev
Create WooCommerce extensions/plugins — file structure, main plugin file, activation/deactivation hooks, custom database tables, autoloading, and WordPress plugin API. Use when building new WooCommerce extensions or structuring plugin code.
woo-performance
Optimize WooCommerce performance — object caching, transients, HPOS, database optimization, Action Scheduler, lazy loading, and query optimization. Use when improving store performance or diagnosing slowness.
woo-payments
Build WooCommerce payment gateways — WC_Payment_Gateway, direct/redirect/hosted integrations, tokenization, subscriptions support, refunds, and PCI compliance. Use when creating custom payment method integrations.
woo-hooks-filters
Master the WordPress hook system for WooCommerce — actions, filters, hook priorities, WooCommerce-specific hooks, and extensibility patterns. Use when adding functionality via hooks or understanding the WooCommerce execution flow.
woo-frontend
Customize WooCommerce frontend — template overrides, theme integration, shortcodes, hooks for product/cart/checkout display, and WooCommerce block themes. Use when modifying the storefront appearance or building WooCommerce themes.