Inside Grok
On grok.com, one connector URL. In Cursor or Grok Bot, the URL and an x-api-key header.
Grok's custom connectors take the server URL, so the key rides at the end of it, exactly as for claude.ai. The app shows this URL next to every new key.
- In the app, Settings → API & MCP → Create a key. Copy the connector URL shown for Claude and Grok.
- On grok.com, open Connectors (grok.com/connectors) → New Connector → Custom.
- Name it AutomateSocials and paste the URL. It needs no other sign-in.
- In a chat, turn the connector on and say what you want.
https://automatesocials.net/mcp/sk_live_...Inside Cursor / Grok Bot
- In AutomateSocials: Settings → API & MCP → Create a key. Copy only the sk_live_… key (or the connector URL shown).
- Ask the Grok Bot or Cursor agent: “Add AutomateSocials MCP”, and give it the key through its secure secret field. Do not paste sk_live_ keys into the normal chat.
- The agent adds a remote MCP server with the URL https://automatesocials.net/mcp and the header x-api-key: sk_live_…. In Cursor, use the header rather than putting the key at the end of the URL.
- Check that it connected: the AutomateSocials tools load. A safe first request is “List my connected social accounts”.
- One key is one project. If you run several brands or clients, add a separate connector for each, with its own name and key, so posts never cross between them.
- If a key was ever pasted into a normal chat, revoke it under Settings → API & MCP and create a new one.
URL https://automatesocials.net/mcp
Header x-api-key: sk_live_...Questions
Does one key work for all my brands? No. A key belongs to one project. Use one connector per brand, each with that project's key.
grok.com or Cursor? grok.com takes the full connector URL with the key at the end. Cursor and Grok Bot take the URL plus an x-api-key header, or the agent's secure add flow.
Where is the .env? You do not need one for Grok Bot or Cursor. The key lives in the connector settings or the agent's secure secret field, not in your project's code.
From the xAI API
Your own code calling Grok can use the same server as a remote MCP tool: the URL without the key, and the key as the authorization token.
{ "type": "mcp",
"server_url": "https://automatesocials.net/mcp",
"server_label": "automatesocials",
"authorization": "sk_live_..." }