log for Grok: add log as a custom connector and answer your X DMs

Add log as a custom connector on grok.com, or as an MCP tool in the xAI API, then ask Grok who is waiting on you in your X DMs and answer each person in your own voice.

Connect log to Grok: grok.com

For chatting with Grok. Grok connects from xAI’s servers, so it uses your log workspace’s public address.

  1. Go to grok.com/connectors, click New Connector and choose Custom.
  2. Paste the log server URL:
    https://mcp.listeningkit.com/mcp
  3. Sign in to log, pick your team and approve Grok.
  4. Grok finds log’s tools and uses them on its own when your question needs them, like “who is waiting on me in my x dms?”
  5. On Grok Business and Enterprise a team admin sets up connectors first.

Connect log to Grok: The xAI API

For your own scripts. The API sends a fixed token instead of signing in, so it talks to a logMcp you serve yourself.

  1. On your server, set LOG_MCP_TOKEN in ~/.logCli/.env and serve log over HTTP, behind your own HTTPS address:
    logMcp --http --host 0.0.0.0 --port 7337
  2. Give Grok the server as an MCP tool in the Responses API:
    import os
    from openai import OpenAI
    
    client = OpenAI(api_key=os.getenv("XAI_API_KEY"), base_url="https://api.x.ai/v1")
    response = client.responses.create(
        model="grok-4.7",
        input="who is waiting on me in my x dms?",
        tools=[{
            "type": "mcp",
            "server_url": "https://<your-host>/mcp",
            "server_label": "log",
            "authorization": os.getenv("LOG_MCP_TOKEN"),
        }],
    )

Grok with log: quick answers

How do I add log to Grok?

On grok.com/connectors, click New Connector, choose Custom, paste https://mcp.listeningkit.com/mcp and sign in to log. Grok then uses log’s tools when your question needs them.

Can I use it from the xAI API?

Yes. The Responses API takes an MCP server as a tool with server_url, server_label and an authorization token. Point it at a logMcp you serve over HTTPS with LOG_MCP_TOKEN set.

Does Grok see my X inbox on its own?

No. With log connected, Grok reads your own X DMs and X Chat through log, from your own account, only when you ask.

Does it send without asking me?

No. Every send is a dry run until you say go.

What does log cost?

Nothing. log is free and open source under the MIT license, and runs on your own machine with your own AI agent, like Claude Code, Codex or Cursor.

By Matthew Don. Updated .