Rebrandly MCP Tool (Go)

by gonzariosm

247 downloads
Not rated
GitHub Website

About

This is a simple MCP server written in Go that exposes a single tool (createshortlink) to generate short URLs via the Rebrandly API. It is intended for users who have a Rebrandly account and an API key.

Details

Author
gonzariosm
Downloads
247
Categories
Developer Tools

- Single tool: create_short_link for URL shortening.
- Accepts optional workspace ID, custom slug, and title.
- Compiled to a standalone Go binary.
- Integrates directly with the Rebrandly API.

Build the binary with go build -o rebrandly-tool main.go (requires Go 1.20+). Then configure it in Claude Desktop by adding a JSON entry under mcpServers with the command path and the REBRANDLY_API_KEY environment variable.

Rebrandly MCP Tool (Go)

This project implements a simple MCP server in Go that exposes a single tool (create_short_link) to generate short URLs using the Rebrandly API.

Requirements

- Go 1.20 or higher
- A Rebrandly account and an API Key

Build Instructions

1. Clone this repository or save the main.go file.
2. Build the binary using:

go build -o rebrandly-tool main.go

This will generate an executable named rebrandly-tool.

Usage with Claude Desktop

Claude Desktop supports custom MCP servers. To connect this tool:

1. Open your Claude Desktop configuration.
2. Add the following entry under mcpServers:

{
  "mcpServers": {
    "Rebrandly": {
      "command": "PATH/TO/rebrandly-tool",
      "args": [],
      "env": {
        "REBRANDLY_API_KEY": "YOUR_KEY"
      }
    }
  }
}

> 🔧 Replace PATH/TO/rebrandly-tool with the actual path to the binary, and YOUR_KEY with your Rebrandly API Key.

Tool Available

create_short_link

This tool generates a short URL via Rebrandly.

Parameters

| Name | Required | Description |
| ----------- | -------- | ---------------------------------------------------- |
| destination | ✅ | The original long URL to shorten |
| workspace | ❌ | Optional workspace ID (for multi-workspace accounts) |
| slashtag | ❌ | Optional custom slug |
| title | ❌ | Optional title for the short link |

License

Licensed under MIT - see LICENSE file.

Rebrandly in MCP Registries

- https://mcpreview.com/mcp-servers/rebrandly/rebrandly-mcp
- https://mcp.so/server/rebrandly-mcp/rebrandly
- https://glama.ai/mcp/servers/@rebrandly/rebrandly-mcp

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.