Connect Claude Code
Add the Link in Seconds MCP server to Claude Code with one command and publish files from your terminal.
Claude Code connects to remote MCP servers over HTTP. Once added, Claude can publish files it reads or writes in your project and reply with the link.
Create an API key
Open Dashboard → API keys, create a key named “Claude Code” and copy it. It starts with
lis_.Add the server
Run this in your terminal, with your key in place of the placeholder:
Shellclaude mcp add --transport http linkinseconds https://linkinseconds.com/api/mcp \ --header "Authorization: Bearer lis_YOUR_KEY"Add
--scope userto make it available in every project, or--scope projectto share it with your team through a.mcp.jsonfile (then keep the key out of that file, see below).Check it is connected
Start Claude Code and run
/mcp. You should see linkinseconds as connected, with six tools.Ask for a link
For example:
Text> Turn notes.md into a clean HTML page and publish it as a linkClaude writes the page, calls
upload_fileand replies with something like:TextPublished: https://linkinseconds.com/p/notes-k3
Big files#
For files over 3 MB, Claude calls create_upload_url, uploads the file with curl from your terminal (you will be asked to approve the command), then calls finish_upload. Nothing extra to configure.
Keep the key out of shared files#
With project scope, the server is saved in .mcp.json in your repo. Claude Code expands environment variables in that file, so commit a reference instead of the key:
{
"mcpServers": {
"linkinseconds": {
"type": "http",
"url": "https://linkinseconds.com/api/mcp",
"headers": { "Authorization": "Bearer ${LIS_API_KEY}" }
}
}
}Each teammate then sets their own key:
export LIS_API_KEY="lis_..."Remove it#
claude mcp remove linkinsecondsTip
Last updated 4 October 2026. Something unclear or missing? Tell us.