Skip to main content
Glama

AEP MCP サーバー

2つのMCPサーバーで、Claude(およびMCP互換のクライアント)にAdobe Experience Platform、Adobe Journey Optimizer、Real-Time CDPへの自然言語アクセスを提供します。

サーバー

ファイル

ツール

説明

AEP(カスタム構築)

server.py

137+

FastMCPで構築された完全なAEP/AJO APIカバレッジ

RT-CDP(Adobe公式プロキシ)

rtcdp_proxy.py

18

Adobe公式のrtcdp-mcp.adobe.ioサーバーへのプロキシ


クイックスタート

1. セットアップスクリプトを実行

./setup.sh

これにより.venvが作成され、すべての依存関係がインストールされ、pre-commitフックがインストールされ、貼り付ける正確なMCP設定JSON(お使いのマシンの正しい絶対venv Pythonパスを含む)が出力されます。

Windows: 手動で手順を実行してください。python3 -m venv .venv、.venv\Scripts\activate、pip install -r requirements.txt。

2. 認証情報を設定

Adobe Developer Console → プロジェクト → OAuthサーバー間から認証情報を入力してください:

# orgs.json was created by setup.sh — edit it now

または、環境変数を使用します(単一組織のフォールバック):

cp .env.example .env
# edit .env

3. Claude Codeに登録

setup.shが出力したJSONを.claude/mcp_servers.jsonに貼り付けます。例:

{
  "aep": {
    "command": "/path/to/aep-mcp-server/.venv/bin/python",
    "args": ["/path/to/aep-mcp-server/server.py"]
  }
}

常にvenv Pythonパスを使用してください。MCPクライアントはアクティブなシェルの外部でサーバーを起動するため、ベアのpython3ではインストールされたパッケージが見つかりません。

4. 実行

python3 server.py                        # AEP server, default org profile
AEP_PROFILE=MyClient python3 server.py  # start with a specific profile

Related MCP server: Fourth Brain Demo

複数組織設定

orgs.jsonは複数の名前付きプロファイルをサポートしています。異なるAdobe組織やサンドボックス間での作業に便利です:

{
  "default": "ClientA",
  "profiles": {
    "ClientA": {
      "client_id": "...",
      "client_secret": "...",
      "api_key": "...",
      "org_id": "XXXX@AdobeOrg",
      "sandbox": "prod",
      "sandboxes": {
        "dev": "my-sandbox-dev",
        "prod": "my-sandbox-prod"
      }
    },
    "ClientB": {
      "client_id": "...",
      "client_secret": "...",
      "api_key": "...",
      "org_id": "YYYY@AdobeOrg",
      "sandbox": "prod"
    }
  }
}

switch_org_profileツールを使用して実行時に組織を切り替えるか、起動時にAEP_PROFILEを設定します。トークンキャッシュはプロファイルごとに維持されます。


サーバー1 — AEP MCP (server.py)

FastMCPで構築。すべてのツールはオプションのsandboxパラメータを受け入れます。省略された場合、アクティブなプロファイルのデフォルトサンドボックスが使用されます。

データセットとバッチ

list_datasets · get_dataset · create_dataset · get_batch · list_batches · get_sandbox · list_sandboxes · reset_sandbox

XDMスキーマレジストリ

list_schemas · get_schema · create_schema · enable_schema_for_profile · list_field_groups · get_field_group · create_field_group · list_classes · list_data_types · list_descriptors · create_descriptor

リアルタイム顧客プロファイルとID

get_profile_by_identity · get_identity_cluster · list_identity_namespaces · get_identity_namespace · list_merge_policies · list_profile_export_jobs · get_profile_export_job

セグメンテーション / オーディエンス

list_segments · get_segment · create_segment · delete_segment · list_segment_jobs · get_segment_job · create_segment_job · list_streaming_jobs

クエリサービス

list_queries · get_query · run_query · cancel_query · list_query_runs · list_query_templates · get_query_template · create_query_template · list_scheduled_queries

AJO — ジャーニーとキャンペーン

list_journeys · get_journey · list_journey_versions · list_campaigns · get_campaign

AJO — オファー判定

list_offers · get_offer · list_placements · list_collections · list_offer_activities · get_offer_activity · list_ranking_formulas · create_eligibility_rule

フローサービス(ソースと宛先)

list_connections · get_connection · list_connection_specs · get_connection_spec · list_dataflows · get_dataflow · list_flow_runs · get_flow_run · list_source_connections · get_source_connection · list_target_connections · get_target_connection

可観測性インサイトとアラート

get_metrics · list_alert_subscriptions · get_alert_subscription · get_alerts_by_feature · list_alert_notifications · subscribe_alert

データハイジーン

list_dataset_expirations · get_dataset_expiration · create_dataset_expiration · cancel_dataset_expiration · list_record_delete_orders · get_record_delete_order · create_record_delete_order · get_hygiene_quota

データ準備(マッピング)

list_mapping_sets · get_mapping_set · create_mapping_set · preview_mapping_set · list_mappings · get_mapping · validate_mapping_expression · list_data_prep_functions

計算属性

list_computed_attributes · get_computed_attribute · create_computed_attribute · update_computed_attribute

アクセス制御(ABAC)

list_roles · get_role · list_role_subjects · list_role_policies · list_policies · get_policy · get_effective_policies · list_available_permissions · list_users · get_user_roles

カスタマージャーニーアナリティクス(CJA)

CJAツールはサンドボックスではなくデータビューIDを使用します。

cja_list_connections · cja_get_connection · cja_list_data_views · cja_get_data_view · cja_list_dimensions · cja_list_metrics · cja_list_projects · cja_get_project · cja_create_project · cja_update_project · cja_delete_project · cja_list_filters · cja_get_filter · cja_create_filter · cja_update_filter · cja_delete_filter · cja_list_calculated_metrics · cja_get_calculated_metric · cja_create_calculated_metric · cja_update_calculated_metric · cja_delete_calculated_metric · cja_list_annotations · cja_create_annotation · cja_delete_annotation · cja_run_report

組織と複数組織管理

list_org_profiles · get_current_org · switch_org_profile · switch_sandbox


サーバー2 — RT-CDPプロキシ (rtcdp_proxy.py)

rtcdp-mcp.adobe.ioにあるAdobe公式のReal-Time CDP MCPサーバーへのツール呼び出しを転送する軽量なstdio→HTTPSプロキシ。認証ヘッダーはアクティブなorgs.jsonプロファイルから取得されるため、switch_org_profileは両方のサーバーで動作します。

.envを介してアップストリームURLを設定します(オプション。デフォルトはAdobeのエンドポイント):

RTCDP_MCP_URL=https://rtcdp-mcp.adobe.io/mcp

注意: AdobeのRT-CDP MCPサーバーはゲート機能です。アクセスについてはAdobeの担当者にお問い合わせください。

ツール(Adobeからプロキシ)

search_audiences · preview_audience_membership · inspect_audience_evaluation_jobs · inspect_audience_export_jobs · search_destination_connectors · search_destination_accounts · search_destination_flows · search_destination_input_connections · search_destination_output_connections · search_source_connectors · search_source_accounts · search_source_flows · search_source_input_connections · search_source_output_connections · search_identity_namespaces · search_merge_policies · search_organizations · inspect_flow_runs


プロジェクト構成

server.py                  # AEP FastMCP entrypoint
rtcdp_proxy.py             # RT-CDP stdio→HTTPS proxy
auth.py                    # Auth + HTTP helpers; multi-org profile state
orgs.json                  # Your credentials — GITIGNORED, never commit
orgs.example.json          # Template for orgs.json
.env / .env.example        # Fallback single-org config
requirements.txt
hooks/pre-commit           # Blocks credential commits
scripts/install_hooks.py   # Installs the pre-commit hook
tools/
  datasets.py              # Catalog Service: datasets, batches, sandboxes
  schemas.py               # Schema Registry: XDM schemas, classes, field groups
  profiles.py              # Real-Time Customer Profile, identity, merge policies
  segments.py              # Segmentation: definitions, jobs, streaming
  query.py                 # Query Service: ad-hoc SQL, templates, scheduled
  ajo.py                   # AJO: journeys, campaigns, offers, eligibility rules
  cja.py                   # Customer Journey Analytics
  flows.py                 # Flow Service: connections, dataflows, flow runs
  observability.py         # Observability Insights: metrics, alerts
  data_hygiene.py          # Data Hygiene: dataset TTL, record deletes
  data_prep.py             # Data Prep: mapping sets, expression validation
  computed_attributes.py   # Computed Attributes
  access_control.py        # ABAC: roles, permissions, effective policies
  orgs.py                  # Multi-org: list/switch profiles and sandboxes
  usage_logger.py          # @track decorator — logs tool calls to CSV

新しいツールモジュールの追加

  1. tools/new_domain.pyをregister(mcp)関数で作成

  2. server.pyに追加:インポートしてnew_domain.register(mcp)を呼び出す

  3. CLAUDE.mdのツールパターンに従う

認証フロー

auth.pyは最初にorgs.jsonプロファイルをチェックし、次に.env環境変数にフォールバックします。

  • OAuth S2S(推奨):client_id + client_secretを設定。トークンは期限切れ前に自動更新

  • 静的トークン(開発/テスト):access_tokenを設定。自動更新なし

要件

mcp[cli]>=1.3.0
httpx>=0.27.0
python-dotenv>=1.0.0

Related MCP Connectors

Related MCP Servers

  • F
    license
    C
    quality
    Not graded
    maintenance
    An MCP server that gives Claude access to Ogury's campaign reporting API, enabling retrieval of campaign performance metrics and reports through natural language queries.
    2
    -
  • F
    license
    Not graded
    quality
    D
    maintenance
    An MCP server that connects Claude.ai to a Notion-based marketing knowledge base, enabling search and retrieval across specialized domains like enterprise platforms and competitive positioning. It provides tools for RAG-style Q\&A and content browsing to assist with drafting RFPs and value propositions.
    1
    -
  • A
    license
    A
    quality
    D
    maintenance
    MCP server for Adobe Customer Journey Analytics, enabling AI-powered analytics queries including reports, breakdowns, trends, and dimension searches through Claude and other MCP clients.
    16
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    MCP server that enables AI agents (Claude Code) to manage Criteo campaigns, ad sets, creatives, audiences, and reports via natural language.
    -