MCP.so
登录
G

Go Promptpay MCP Server

@naruebaet

基本信息

分类

其他

传输方式

stdio

作者

naruebaet

提交者

Alien Dev

关于 Go Promptpay MCP Server

A Model Context Protocol (MCP) server implementation for generating PromptPay QR codes payload in Go.

#go#promptpay#thailand

Go Promptpay MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "go-promptpay-mcp": {
      "type": "stdio",
      "command": "go-promptpay-mcp",
      "args": []
    }
  }
}

Go Promptpay MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Go Promptpay Mcp?

Go Promptpay Mcp is a Model Context Protocol (MCP) server implementation written in Go that generates PromptPay QR code payloads following the EMVCo standard. It is designed for developers who want to integrate PromptPay payment code generation into MCP-compatible AI assistants or tools.

How to use Go Promptpay Mcp?

Install the server with go install github.com/naruebaet/go-promptpay-mcp (requires Go 1.16+). Then configure it in a VS Code workspace by creating .vscode/mcp.json with "command": "go-promptpay-mcp" using the stdio transport. The server exposes the generate_promptpay_code tool, which requires accountType ("phone" or "id") and accountNumber, and accepts an optional amount in THB.

Key features of Go Promptpay Mcp

  • Generates PromptPay QR codes using EMVCo standard
  • Supports phone numbers with proper formatting
  • Supports Thai national ID numbers
  • Optional amount specification with decimal support
  • MCP compliant server implementation
  • Input validation and error handling

Use cases of Go Promptpay Mcp

  • Generate PromptPay QR code payload for merchant payments
  • Enable AI assistants to create payment QR codes on demand
  • Automate QR code generation in CI/CD workflows
  • Support both fixed and variable amount payments
  • Validate account numbers before producing QR payloads

常见问题

1

What dependencies does Go Promptpay Mcp require?

It requires Go 1.16 or higher and uses the `github.com/mark3labs/mcp-go` and `github.com/naruebaet/go-promptpay` libraries.

2

How do I set up the server in VS Code?

Create a `.vscode/mcp.json` file with `"type": "stdio"` and `"command": "go-promptpay-mcp"` with no arguments, then start the server from that workspace.

3

What account types are supported?

The server supports two account types: `"phone"` (phone numbers) and `"id"` (Thai national ID numbers).

4

Can I include an amount in the QR code?

Yes, you can optionally specify an amount in THB using the `amount` parameter, which supports decimal values.

5

What transport does the server use?

The server communicates over the standard input/output (stdio) transport, as configured for MCP servers in VS Code and similar environments.

评论

其他 分类下的更多 MCP 服务器