short-url
简单易用的短链接生成工具,完全开源、免费、无需登录,可私有化部署,链接永久有效!
claude mcp add --transport stdio fengzhongsen-short-url npx -y short-mcp-server \ --env API_KEY="YOUR_API_KEY" \ --env API_ORIGIN="http://localhost:3001"
How to use
The short-url MCP server enables AI assistants and developer tools to interact with your short-link service through the MCP (Model Context Protocol). By configuring the MCP server, you expose a standard entry point that clients like Claude Desktop or VS Code can reach to generate short links via your backend. The MCP server relies on a running short-url backend (the Express + Redis service) and uses the API origin and an API key for secured access. Once configured, you can invoke short-link creation by sending requests through the MCP channel, and the AI assistant can return and display the resulting short URLs to users.
To use the MCP server, start the MCP server process (via npx short-mcp-server or your chosen deployment method) and ensure the API origin points to your running short-url backend. In Claude Desktop or VS Code, add the short-url MCP entry with the same command and environment variables (API_ORIGIN and API_KEY). The MCP server will then forward requests to your short-url service, enabling features like creating new short links from natural language prompts or editor actions, and retrieving existing short links when needed.
How to install
Prerequisites:
- Node.js 16+ installed
- Redis 5+ running locally or accessible
- Access to the repository with the short-url project (Monorepo: packages/short-mcp-server for MCP support)
Installation steps:
-
Install Node.js and Redis if not already available.
-
Clone the repository and install dependencies at the root or in the relevant package workspace:
npm install
-
Start the MCP server using the recommended MCP package (example with npx):
npx -y short-mcp-server
-
Ensure the short-url backend is running (Express + Redis) and accessible at the specified API origin (default http://localhost:3001).
-
If you’re deploying, you can also run via Docker/Docker Compose as outlined in the project’s deployment docs (docker compose up -d --build).
Notes:
- Update the API_ORIGIN and API_KEY in your MCP client configuration to point to your live backend and a valid key.
- For local testing, you can start the backend on port 3001 and set API_ORIGIN accordingly.
Additional notes
Tips and common considerations:
- Environment variables API_ORIGIN and API_KEY are required for MCP integration; replace YOUR_API_KEY with a real key when deploying.
- If deploying publicly, ensure the API origin is a reachable domain and consider rotating API keys regularly.
- The MCP server integrates with Claude Desktop and VS Code setups; ensure you configure the same command and environment variables in each tool’s MCP settings.
- If you encounter connectivity issues, verify that Redis is running and accessible from the MCP server process, and that the backend (short-url) is listening on the configured origin/port.
- For Docker deployments, use the recommended docker compose workflow to simplify orchestration and ensure consistent networking between services.
Related MCP Servers
mongodb-lens
🍃🔎 MongoDB Lens: Full Featured MCP Server for MongoDB Databases
openapi
OpenAPI definitions, converters and LLM function calling schema composer.
mcp-arr
MCP server for *arr media management suite
skill-to
Convert AI Skills (Claude Skills format) to MCP server resources - Part of BioContextAI
mcp-tailscale
MCP server for managing your Tailscale network (tailnet) through Claude Code and other MCP clients
webasyst
MCP server for Webasyst framework — tools for apps, plugins, themes, UI components via AI assistants (Claude, Cursor)