Mastercard Developers MCP

io.github.Mastercard由 GitHub 账号 Mastercard 发布v0.1.0更新于 Oct 24, 2026

Access Mastercard Developers APIs, documentation, and API specifications through MCP.

已验证STDIO仅桌面知识与记忆开发者工具

概览

AI 生成的概览

一个本地 MCP 服务器,让助手以只读方式访问 Mastercard Developers 的服务、文档、API 规范和 OAuth 集成指南。

可以做什么
列出 Mastercard Developers 的产品与服务,含标题、描述和服务 ID,可在启动时限定到某个服务或 API 规范。浏览某服务的文档总览、章节标题和导航链接。读取某个文档章节或页面的完整内容。汇总 API 规范中的操作,含 HTTP 方法、路径、标题和描述。获取单个 API 操作的参数定义与请求/响应结构。获取 OAuth 1.0a、OAuth 2.0 和 Open Finance 集成指南,含步骤、代码示例和最佳实践。
适用场景
适合在开发或调试 Mastercard API 集成时使用,让助手在对话中直接查阅官方文档、操作结构和认证说明。预先配置服务或规范 URL 可让回答聚焦于单一产品。
运行要求
通过 npx 从 npm 包 @mastercard/developers-mcp 以 stdio 在本地运行,需要 Node.js 18 或更高版本。需要能访问 Mastercard Developers 的文档和规范 URL。未声明账号、API 密钥或环境变量。可选 --service 或 --api-specification 参数用于聚焦;规范参数会覆盖服务参数并禁用服务列表工具。
安装前请注意
文档和规范内容取自 Mastercard 公开开发者站点,配置中给出的 URL 和返回的页面均为第三方数据。该服务器对文档只读,不调用 Mastercard API,也不自行处理凭据。使用其返回的代码示例前请先审查。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Mastercard Developers MCP,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Mastercard Developers MCP Server

[mastercard developers logo]

A Model Context Protocol (MCP) server that provides access to Mastercard Developers documentation.

Overview

This MCP server acts as a bridge between MCP clients and Mastercard Developers resources, offering tools to:

  • List available Mastercard services
  • Query API specifications and their operations
  • Access documentation for each service
  • Retrieve integration guides for OAuth 1.0a, OAuth 2.0, and Open Finance

Available Tools

Service Discovery

  • get-services-list: Lists all available Mastercard Developers Products and Services with their basic information including title, description, and service ID.

Documentation

  • get-documentation: Provides an overview of all available documentation for a specific Mastercard service including section titles, descriptions, and navigation links.

  • get-documentation-section-content: Retrieves the complete content for a specific documentation section.

  • get-documentation-page: Retrieves the complete content of a specific documentation page.

API Operations

  • get-api-operation-list: Provides a summary of all API operations for a specific Mastercard API specification including HTTP methods, request paths, titles, and descriptions.

  • get-api-operation-details: Provides detailed information about a specific API operation including parameter definitions, request and response schemas, and technical specifications for successful API calls.

Integration Guides

  • get-oauth10a-integration-guide: Retrieves the comprehensive OAuth 1.0a integration guide including step-by-step instructions, code examples, and best practices for Mastercard APIs.

  • get-oauth20-integration-guide: Retrieves the comprehensive OAuth 2.0 integration guide including step-by-step instructions, code examples, and best practices for Mastercard APIs.

  • get-openfinance-integration-guide: Retrieves the comprehensive Open Finance integration guide including setup instructions, API usage examples, and implementation best practices.

Configuration Options

You can pre-configure the server with a specific service or API specification by passing them as arguments. This is useful when you are working with a specific service, and you want to focus your agents

  • service: URL of the documentation of a service that you want the MCP to focus on e.g. https://developer.mastercard.com/mdes-customer-service/documentation
  • api-specification: URL of the API specification that you want the MCP tools to focus on e.g. https://static.developer.mastercard.com/content/match/swagger/match-pro.yaml. You can get the link from Download Spec button in the API Reference page of service. NOTE: Specifying this will override any value provided in service configuration.

If you specify service or api-specification then the get-services-list tool will be disabled.

Integration with MCP Clients

To use this server with MCP clients like Claude Desktop, add it to your MCP configuration:

json
{  "mcpServers": {    "mastercard-developers": {      "command": "npx",      "args": ["-y", "@mastercard/developers-mcp"]    }  }}

For Specific Service

json
{  "mcpServers": {    "mastercard-developers": {      "command": "npx",      "args": [        "-y",        "@mastercard/developers-mcp",        "--service=https://developer.mastercard.com/open-finance-us/documentation/"      ]    }  }}

For Specific API Specification

json
{  "mcpServers": {    "mastercard-developers": {      "command": "npx",      "args": [        "-y",        "@mastercard/developers-mcp",        "--api-specification=https://developer.mastercard.com/open-finance-us/swagger/openbanking-us.yaml"      ]    }  }}

Usage with VSCode

For quick installation, use one of the one-click installation buttons below:

[Install with NPX in VS Code] [Install with NPX in VS Code Insiders]

For manual installation, add the following JSON block to your User Settings (JSON) file in VS Code. You can do this by pressing Ctrl + Shift + P and typing Preferences: Open Settings (JSON).

Optionally, you can add it to a file called .vscode/mcp.json in your workspace. This will allow you to share the configuration with others.

Note that the mcp key is not needed in the .vscode/mcp.json file.

NPX

json
{  "mcp": {    "servers": {      "mastercard-developers": {        "command": "npx",        "args": ["-y", "@mastercard/developers-mcp"]      }    }  }}

You can also provide configuration options as arguments, see above for examples.

Development

Pre-requisites: Node.js 18+

  1. Install dependencies:

    bash
    npm install
  2. Build the project:

    bash
    npm run build
  3. Run tests:

    bash
    npm run test
  4. Start the server:

    bash
     npm run start

Watch for changes during development:

bash
npm run watch

The server runs on stdio and will be available for MCP client connections.

With Configuration Options
bash
# Pre-configure with a documentation URLnpm run start -- --service=https://developer.mastercard.com/open-finance-us/documentation/
# Pre-configure with an API specification pathnpm run start -- --api-specification=https://static.developer.mastercard.com/content/open-finance-us/swagger/openbanking-us.yaml

To build the DXT file

You can build the DXT file for one-click installation for Claude Desktop by running:

bash
npm run build-dxt

Debugging the server

bash
npx @modelcontextprotocol/inspector node dist/index.js

References

来源:modelcontextprotocol/README.md,提交 24df3ad

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分