Skip to main content
Connect SocialAPI to Hermes Agent and ask it to list your connected accounts, reply to comments, send direct messages (DMs), and publish posts from hermes chat or from any messaging channel your Hermes gateway runs. Hermes reads MCP servers from ~/.hermes/config.yaml. The server is https://api.social-api.ai/mcp.

Prerequisites

  • Hermes Agent installed with MCP support. The standard install includes it: see Troubleshooting if you installed from PyPI.
  • A SocialAPI account with at least one connected account.
  • For a gateway with no browser: an API key.

Set up with OAuth

1

Add the server

Add this to ~/.hermes/config.yaml:
2

Sign in

Hermes opens your browser on the SocialAPI authorization page. Log in and click Authorize. When the callback arrives, Hermes prints Authenticated with the number of tools available. Hermes caches the token in ~/.hermes/mcp-tokens/socialapi.json and refreshes it automatically.If Hermes runs on a remote host, the browser callback cannot reach it. Paste the redirect URL into the prompt that hermes mcp login shows, or authorize from Hermes Desktop, which relays the callback.
3

Start using it

Start a new session with hermes chat, or type /reload-mcp in a running one. A running messaging gateway (hermes gateway run) watches config.yaml and connects the new server, so the same tools work from Telegram, Discord, or any other channel routed to Hermes.
Hermes registers the tools with an mcp_socialapi_ prefix, for example mcp_socialapi_social_api_list_accounts. You never need to call a tool by name.

Set up a headless gateway with an API key

For a gateway with no browser, authenticate with an API key instead of OAuth.
1

Store the key

Put the key in ~/.hermes/.env:
2

Reference the key

Reference it from config.yaml, without auth: oauth:
Hermes substitutes ${SOCAPI_KEY} when it runs, so the key never sits in config.yaml. To limit what the agent can do, create a scoped API key.

Limit the tools

Keep a subset of tools with tools.include, or hide some with tools.exclude:
You can also switch tools on and off interactively with hermes mcp configure socialapi. See MCP tools reference for every tool name.

Try it

Run hermes mcp test socialapi to check that Hermes connects, authenticates, and counts the tools. Then ask Hermes:
Hermes lists your Google Business Profile reviews, finds the ones without a reply, and posts a reply to each.

Troubleshooting

Hermes was installed without its MCP dependencies, for example with uv tool install hermes-agent. Reinstall with the extra: uv tool install --force 'hermes-agent[mcp]'.
The first OAuth sign-in needs a terminal. Run hermes mcp login socialapi interactively once, or use the API key setup.
The token or key is wrong or revoked. Run hermes mcp login socialapi again, or check the key in the dashboard.
Last modified on October 13, 2026