Ap2 Mcp Serverのロゴ

Ap2 Mcp Server

組織
OrcaQubits
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.

概要

公開者OrcaQubits
リポジトリagentic-commerce-skills-plugins
スキル名ap2-mcp-server
スター
40
フォーク
17
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    OrcaQubitsがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルAp2 Mcp ServerをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/OrcaQubits/agentic-commerce-skills-plugins/tree/main/ap2-agentic-payments/skills/ap2-mcp-server
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/OrcaQubits/agentic-commerce-skills-plugins.git /tmp/agentic-commerce-skills-plugins
mkdir -p .claude/skills
cp -r /tmp/agentic-commerce-skills-plugins/ap2-agentic-payments/skills/ap2-mcp-server .claude/skills/ap2-mcp-server
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでAp2 Mcp Serverを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にAp2 Mcp Serverを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Ap2 Mcp Serverは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

AP2 MCP Server Integration

Before writing code

Fetch live docs:

  1. Fetch https://ap2-protocol.org/ap2/specification/ for MCP server references
  2. Fetch https://ap2-protocol.org/ap2/implementation_considerations/ for MCP integration details
  3. Fetch https://github.com/google-agentic-commerce/AP2/releases 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

AP2's primary binding has been the A2A extension, with MCP support arriving alongside it and expanding over time. Since the protocol moved to the FIDO Alliance for community governance, the roadmap is set there rather than in a single vendor repo.

Resolve the current state before building — do not assume the split above still holds:

  • Check the AP2 repo's CHANGELOG.md and code/ for what the MCP surface actually exposes today.
  • Check FIDO Alliance working-group output (Agentic Authentication TWG, Payments TWG) for where the standard is heading.
  • Confirm which binding — A2A extension or MCP — is the supported path for your integration.

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:

ToolDescription
list_payment_methodsGet available payment methods for a user
create_intent_mandateBuild an Intent Mandate from shopping parameters
create_cart_mandateBuild a Checkout Mandate from product/price details
validate_mandateVerify mandate signatures and contents
process_paymentSubmit a payment for processing
get_transaction_statusCheck payment processing status
get_receiptRetrieve a payment receipt

When to Use MCP vs A2A for Payments

ScenarioUse
Agent calling another agent (Merchant, CP)A2A
Agent calling a payment API/tool directlyMCP
Multi-step agent negotiationA2A
Simple payment status checkMCP
Complex multi-party flowA2A
Tool-based payment method queryMCP

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.

よくある質問

AIスキル「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.

TypingMindでAp2 Mcp Serverを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Ap2 Mcp Serverはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにAp2 Mcp Serverをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/OrcaQubits/agentic-commerce-skills-plugins/tree/main/ap2-agentic-payments/skills/ap2-mcp-serverを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Ap2 Mcp Serverを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Ap2 Mcp Serverは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもAp2 Mcp Serverを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Ap2 Mcp Server」は無料ですか?

はい。OrcaQubitsがGitHubでMITライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇