Stellar XDR-JSON

by leighmcculloch

2 stars
Not rated
GitHub

About

Decodes Stellar blockchain data by converting complex XDR format to human-readable JSON, enabling analysis of transactions and contract events without manual binary decoding

Details

Author
leighmcculloch
Repository
stellar-experimental/mcp-stellar-xdr
GitHub stars
2
License
Apache License 2.0
Categories
Design, Developer Tools, AI, Frontend, Infrastructure

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Stellar XDR-JSON
    Command (node, npx, python, etc.) npx
    Arguments
    • Argument 1 deno
    • Argument 2 run
    • Argument 3 --allow-read
    • Argument 4 https://github.com/leighmcculloch/mcp-stellar-xdr/raw/refs/heads/main/mcp-stellar-xdr.ts

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

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/leighmcculloch/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.

To use with Claude Desktop:

1. Add the server config:

On macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

On Windows: %APPDATA%/Claude/claude_desktop_config.json

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

2. Reopen Claude Desktop.

1. Add the server config:

   claude mcp add \
     --transport stdio \
     --scope user \
     mcp-stellar-xdr \
     -- \
     npx deno run --allow-read https://github.com/leighmcculloch/mcp-stellar-xdr/raw/refs/heads/main/mcp-stellar-xdr.ts
   

2. Reopen Claude Code.

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.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

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

Linux

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

Macos

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

Windows

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

Stellar MCP Server for XDR

An [Model Context Protocol (MCP)] server that decodes Stellar XDR into
XDR-JSON, that agents can use to understand what XDR means.

[Model Context Protocol (MCP)]: https://www.claudemcp.com/

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 (General)

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/leighmcculloch/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.

Usage (Claude Desktop)

To use with Claude Desktop:

1. Add the server config:

On macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

On Windows: %APPDATA%/Claude/claude_desktop_config.json

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

2. Reopen Claude Desktop.

Usage (Claude Code)

1. Add the server config:

   claude mcp add \
     --transport stdio \
     --scope user \
     mcp-stellar-xdr \
     -- \
     npx deno run --allow-read https://github.com/leighmcculloch/mcp-stellar-xdr/raw/refs/heads/main/mcp-stellar-xdr.ts
   

2. Reopen Claude Code.

Example

Understanding a Transaction

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.