Appearance
MCP and agents
dynm mcp runs a Model Context Protocol server on stdio, so your agent (Claude Desktop, Cursor, Antigravity and others) can make and change your links.
Set it up
Install the CLI and sign in:
bash
npm install -g @dynm.link/cli
dynm loginThen add the server to your agent's MCP config, such as claude_desktop_config.json:
json
{
"mcpServers": {
"dynm-link": {
"command": "dynm",
"args": ["mcp"]
}
}
}The server uses the key dynm login stored. To give it a different one, add "env": { "DYNM_API_KEY": "…" } beside "args", with a key from the dashboard's API keys page.
Tools
| Tool | What it does |
|---|---|
list_links | Your links on every domain, newest first (limit, default 1000). |
get_link | One link, by its domain (host) and slug. |
check_slug | Whether a slug is free on one of your domains (host and slug), and if not, why. |
create_link | A link of any type, with that type's content. host picks the domain, as the CLI's --domain does. Without expiresAt, a file link lasts 14 days and any other never expires; null is never. |
update_link | Changes a link by id: only the fields you give; null clears one. New content is the link's own type's, whole. |
delete_link | Deletes a link by id, with its file and card image. |
update_link and delete_link take the id that list_links and get_link return.
The parameters are the API's own schemas (the shapes are in Link types), so a wrong shape is refused with the field it got wrong. A failed call returns what the CLI would print, such as:
text
SlugTakenError: example.dynm.link/shop is taken.
Choose another slug, or leave it out for a random one.Files
The MCP server doesn't upload. A file link's content takes the r2Key of a file you've already uploaded with POST /v1/uploads. To upload a local file and link it in one step, use dynm link create file.