MCP server
Unlocalhost
Deploy localhost to a private, authenticated link from your AI coding agent.
Runs locallyStatus and history
- Pricing
- Open source
- Runs
- Locally
- Version
- 0.1.1
- Listing updated
- 5 days ago
About Unlocalhost
Unlocalhost is an open-source MCP server. It runs locally on your machine and is started by your AI client.
Install
Run in a terminal
claude mcp add unlocalhost --env UNLOCALHOST_TOKEN='<UNLOCALHOST_TOKEN>' -- npx -y @unlocalhost/unlocalhostAdd to claude_desktop_config.json
{
"mcpServers": {
"unlocalhost": {
"command": "npx",
"args": [
"-y",
"@unlocalhost/unlocalhost"
],
"env": {
"UNLOCALHOST_TOKEN": "<UNLOCALHOST_TOKEN>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"unlocalhost": {
"command": "npx",
"args": [
"-y",
"@unlocalhost/unlocalhost"
],
"env": {
"UNLOCALHOST_TOKEN": "<UNLOCALHOST_TOKEN>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"unlocalhost": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@unlocalhost/unlocalhost"
],
"env": {
"UNLOCALHOST_TOKEN": "<UNLOCALHOST_TOKEN>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"unlocalhost": {
"command": "npx",
"args": [
"-y",
"@unlocalhost/unlocalhost"
],
"env": {
"UNLOCALHOST_TOKEN": "<UNLOCALHOST_TOKEN>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"unlocalhost": {
"command": "npx",
"args": [
"-y",
"@unlocalhost/unlocalhost"
],
"env": {
"UNLOCALHOST_TOKEN": "<UNLOCALHOST_TOKEN>"
}
}
}
}Using several servers? Build one config file with the MCP config generator.
Configuration
UNLOCALHOST_URLBase URL of the unlocalhost instance to talk to. Defaults to the hosted instance. Set this to point the tools at your own self hosted deployment.UNLOCALHOST_TOKENAPI token. Normally written by the unlocalhost_login tool after you approve the device in a browser, so you should not need to set this by hand.
Pricing
Open source
Unlocalhost FAQ
Is Unlocalhost free?
Yes. Unlocalhost is open source, so you can use and self-host it for free.
How do I add Unlocalhost to Claude Code?
Run this command in your terminal: claude mcp add unlocalhost --env UNLOCALHOST_TOKEN='<UNLOCALHOST_TOKEN>' -- npx -y @unlocalhost/unlocalhost
Where this comes from
- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.