Claude Desktop
Connect Links MCP to Claude Desktop using HTTPS/SSE.
This guide explains how to connect the Claude Desktop App to the Links MCP Server.
Since the Links MCP runs on a hosted HTTPS endpoint, we will use the standard SSE Client (@modelcontextprotocol/server-sse-client) to bridge the connection and securely pass your Bearer Token.
Prerequisites
Before starting, ensure you have the following:
node -v (v18+ recommended). Download Node.jsConfiguration
Open Config File
Open the Claude Desktop configuration file in your preferred text editor (VS Code, Notepad, etc.).
code ~/Library/Application\ Support/Claude/claude_desktop_config.jsoncode %APPDATA%\Claude\claude_desktop_config.jsonAdd Links MCP Server
Copy and paste the configuration below into your mcpServers block.
We use the MCP_SSE_HEADERS environment variable to inject your Authorization header.
{
"mcpServers": {
"links-finance": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-sse-client"
],
"env": {
"MCP_SSE_URL": "[https://dev-backend.thelinks.ai/api/v1/mcp](https://dev-backend.thelinks.ai/api/v1/mcp)",
"MCP_SSE_HEADERS": "{\"Authorization\": \"Bearer <YOUR_MCP_KEY_OR_BEARER_TOKEN>\"}"
}
}
}
}Critical: JSON Escaping
The MCP_SSE_HEADERS value is a stringified JSON object.
- You must keep the backslashes (
\") before the inner quotes. - Replace
<YOUR_MCP_KEY_OR_BEARER_TOKEN>with your actual key (e.g.,123-...-sandbox).
Restart Claude
Save the file and fully quit Claude Desktop (Cmd+Q on macOS), then open it again.
Verify Connection
- Look for the plug icon (🔌) in the Claude input bar.
- Click it to verify
links-financehas a green dot. - Type a prompt to test the connection:
"List the recent invoices available in the system."
Troubleshooting
If the connection fails or the plug icon remains orange/red:
1. Check JSON Syntax
The most common error is invalid JSON in the config file. Ensure you haven't missed a comma or unescaped a quote.
- Bad:
"MCP_SSE_HEADERS": "{"Authorization": "Bearer ..."}"(Missing backslashes) - Good:
"MCP_SSE_HEADERS": "{\"Authorization\": \"Bearer ...\"}"
2. Verify MCP Key
Ensure you are using the correct MCP Key format. It should be a UUID with extra key. Do not include extra spaces.
3. Test Node.js
Open your terminal and run:
npx -y @modelcontextprotocol/server-sse-client --helpIf this command fails or asks to install npm, you need to fix your Node.js installation.