---
title: "Add an MCP Server to Claude Code in One Command | site.link"
description: "Add site.link to Claude Code with one claude mcp add command, sign in from /mcp, and publish static sites from your terminal at an address like mycafe.site.link."
url: "https://site.link/help/claude-code-setup"
---

# Add site.link to Claude Code

Claude Code talks to site.link through an MCP server. One command adds it, and you sign in once from inside Claude Code.

What you need

* Claude Code installed and signed in.
* A terminal open in your project's folder.

## 1\. Run the command

In your terminal, run this once. It adds site.link to the project you're in:

`claude mcp add --transport http sitelink https://mcp.site.link/mcp`

To have site.link in every project on this computer instead, add `--scope user`:

`claude mcp add --transport http --scope user sitelink https://mcp.site.link/mcp`

## 2\. Sign in from /mcp

Start Claude Code and type `/mcp`. Pick **sitelink** from the list and choose to authenticate. Your browser opens the site.link sign-in: enter your email, click **Send code**, type the 6-digit code we email you, then click **Continue** and **Allow**.

Back in the terminal, sitelink shows as connected. You only sign in once per computer.

## 3\. Check that it's connected

Ask Claude something only site.link can answer:

> What site.link names do I have?
sitelink: get_account
You don't have any names yet. Want me to check one?

If Claude says it can't reach site.link, run `/mcp` again and check that sitelink isn't waiting for sign-in. When it answers, you're ready to [publish a website with Claude Code](/help/publish-website-claude-code).

## Related guides

* [Publish a website with Claude Code](/help/publish-website-claude-code)
* [Host an HTML file online](/help/host-html-file)
* [Add site.link to Claude](/help/add-custom-connector-to-claude)

Still stuck? Email [care@site.link](mailto:care@site.link) with the address you're working on.
