Stellar XDR 编解码 MCP 服务器

Stellar XDR MCP Server 是一个用于与 Stellar XDR 交互的 MCP 服务,提供 XDR 类型查询、JSON Schema 获取、类型猜测、解码与编码工具,使 AI 智能体能够解读、修改和创建 Stellar XDR 数据。

  • by stellar-experimental
  • TypeScript
  • 本地部署
  • 2 星标
  • 更新于
在 GitHub 查看 leighmcculloch/mcp-stellar-xdr-json

使用说明

Stellar MCP Server for XDR

An Model Context Protocol (MCP) server that provides tools for interfacing with Stellar XDR via XDR-JSON and JSON Schema.

Agents can use the MCP server to understand what XDR means, modify XDR values, and create new XDR values.

Provides five tools:

  • mcp_stellar-xdr_types - Get the supported XDR types.
  • mcp_stellar-xdr_json_schema - Get the JSON schema for an XDR type.
  • mcp_stellar-xdr_guess - Guess what type Stellar XDR is, getting back a list of possible types.
  • mcp_stellar-xdr_decode - Decode a Stellar XDR to JSON.
  • mcp_stellar-xdr_encode - Encode a Stellar XDR from JSON.

Usage

To use with agents, setup a stdio MCP configuration with your agent calling the following command:

{
  "command": "npx",
  "args": ["deno", "run", "--allow-read", "https://github.com/stellar/mcp-stellar-xdr/raw/refs/heads/main/mcp-stellar-xdr.ts"]
}

If you have deno installed you can omit the npx command and call deno directly.

Examples

Create an XDR value

Describe a transaction

Answer a specific question about a transaction

Modify a transaction