Provides integration with the Firelinks platform API for managing short links, tracking click statistics, managing custom domains, and accessing server information.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Firelinks MCP Servercreate a short link for https://example.com/product-launch"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Firelinks MCP Server
MCP (Model Context Protocol) server for the Firelinks platform, allowing external LLMs (Large Language Models) to interact with the Firelinks API - https://firelinks.cc/p/api
Description
This server implements the MCP protocol developed by Anthropic and provides a set of tools for working with the Firelinks platform:
Link Management: create, retrieve, edit short links
Statistics: get detailed click statistics, compare periods
Domains: manage custom domains
Servers: get list of available servers
Architecture
Requirements
Node.js >= 20.0.0
Docker and Docker Compose (for containerization)
Firelinks API token
Installation
Local Development
Install dependencies:
Create
.envfile based on.env.example:
Configure environment variables in
.env:
Start the server:
Or for development mode with auto-reload:
Docker
Build the image:
Run the container:
Docker Compose
Usage
Endpoints
GET /health- server health checkPOST /mcp- main MCP endpoint (JSON-RPC 2.0)GET /sse- Server-Sent Events for streaming
Authentication
All requests to /mcp require an authentication token in the header:
You can get an API token in your Firelinks account.
Integration with LLM Clients
Claude Desktop
Add to Claude Desktop configuration (claude_desktop_config.json):
Cursor
Add to Cursor configuration (mcp.json):
Other MCP Clients
For connecting to other MCP-compatible clients use:
URL:
https://mcp.firelinks.cc/mcpTransport: HTTP
Authentication: Bearer token in Authorization header
Available Tools
Links
firelinks_create_link- create short linkfirelinks_get_link- get link informationfirelinks_list_links- list all linksfirelinks_update_link_url- update link URLfirelinks_add_reserve_url- add reserve URL
Statistics
firelinks_stat_days- statistics by daysfirelinks_stat_total- total statistics for periodfirelinks_stat_links- statistics for all linksfirelinks_stat_clicks- detailed click statisticsfirelinks_stat_compare- compare two periods
Domains
firelinks_list_domains- list domainsfirelinks_create_domain- add domain
Servers
firelinks_list_servers- list available servers
Request Examples
Initialize
List Tools
Create Link
Required parameters:
url- Valid link with http or httpstype- The type of link (use "url" for web links)redirect_type- Redirect type: 0 (301), 1 (302), 2 (303), 4 (META Refresh)
Optional parameters:
link_name- Link namecode- Custom link code (must be unique)domain_id- Domain IDsub_domain- Subdomainkeywords- Keywords for searchkeywords_mode- Keyword search logic (1, 2, or 3)group_id- Link group IDoptions- Additional settings string
Get Statistics
Project Structure
Troubleshooting
Authentication Error
Problem: Missing or invalid Authorization header
Solution: Make sure the request header contains a valid token:
Request Timeout
Problem: Requests to Laravel API timeout
Solution:
Check Laravel API availability
Increase timeout in
src/lib/laravel-api.jsCheck network connectivity between containers
Server Won't Start
Problem: Error on startup
Solution:
Check logs:
docker logs firelinks-mcp-serverMake sure port 3000 is not in use
Check environment variables are correct
License
MIT
Support
For questions and support contact support@firelinks.cc