Connect LinkToDM to VS Code and other AI clients
LinkToDM ships a hosted MCP server (Model Context Protocol) so any MCP-compatible AI client (Claude, ChatGPT, Cursor, VS Code, and others) can read your LinkToDM account, contacts, automations, and analytics, and act on your behalf. Connection takes about a minute and uses your existing LinkToDM login (OAuth), with no API keys to copy or rotate.
The MCP URL
Section titled “The MCP URL”Every client uses the same URL. Copy it once and paste it where the client asks for the server endpoint.
https://api.linktodm.com/v1/mcp/Authentication is handled automatically over OAuth. When the client first connects, you’ll be sent to a LinkToDM sign-in page in your browser to approve access.
VS Code
Section titled “VS Code”VS Code 1.99+ supports MCP servers natively in Copilot Chat. Add this to your settings.json (User or Workspace):
{ "mcp": { "servers": { "linktodm": { "type": "http", "url": "https://api.linktodm.com/v1/mcp/" } } }}Reload the window. In Copilot Chat, switch to Agent mode and the linktodm tools become available. The first call triggers OAuth in your browser.
Cline and Continue use a similar JSON shape. Paste the same URL into their MCP server configuration UI.
Other clients
Section titled “Other clients”The LinkToDM MCP server speaks Streamable HTTP with OAuth 2.0 (Dynamic Client Registration). Any client that supports remote MCP servers can connect with just the URL. No client ID, secret, or local bridge process is needed.
| Endpoint | https://api.linktodm.com/v1/mcp/ |
| Transport | Streamable HTTP |
| Auth discovery | /.well-known/oauth-authorization-server |
| Registration | /register (dynamic) |
| Scopes | read, write |
What you can do once connected
Section titled “What you can do once connected”Whatever the client lets you do in natural language. Common asks:
- “List my LinkToDM automations and which ones are active.”
- “How many DMs did my comment-to-DM automations send last week?”
- “Show me the latest contacts that opted in to my list.”
- “Pause the automation for my last reel.”
- “Export my conversion analytics for the past 30 days as CSV.”
Troubleshooting
Section titled “Troubleshooting”“401 Unauthorized” after connecting
Section titled ““401 Unauthorized” after connecting”The OAuth token expired or was revoked. In the client, disconnect the LinkToDM server and reconnect. You’ll be sent through the sign-in flow again.
Client says “could not connect to server”
Section titled “Client says “could not connect to server””Confirm you copied the full URL (it ends with /v1/mcp/). If you’re behind a corporate proxy, allow outbound HTTPS to https://api.linktodm.com/v1/mcp/.
Tools aren’t showing up in the chat
Section titled “Tools aren’t showing up in the chat”Most clients require you to explicitly enable the connector for the conversation. Claude: toggle the connector chip; ChatGPT: enable it in the connector menu; Cursor and VS Code: switch to Agent mode. Check the client’s MCP panel to confirm the server shows as connected before asking the AI to use it.
Sign-in page doesn’t open
Section titled “Sign-in page doesn’t open”Pop-up blockers can swallow the OAuth window. Allow pop-ups for the AI client’s domain and try again.
Still stuck?
Section titled “Still stuck?”Email us at support@linktodm.com with the client name, the version, and a screenshot of the error. We usually reply the same business day.