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
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.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 Hermes substitutes
config.yaml, without auth: oauth:${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 withtools.include, or hide some with tools.exclude:
hermes mcp configure socialapi. See MCP tools reference for every tool name.
Try it
Runhermes mcp test socialapi to check that Hermes connects, authenticates, and counts the tools. Then ask Hermes:
Troubleshooting
mcp.client.streamable_http is not available
mcp.client.streamable_http is not available
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]'.non-interactive environment and no cached tokens found
non-interactive environment and no cached tokens found
The first OAuth sign-in needs a terminal. Run
hermes mcp login socialapi interactively once, or use the API key setup.Related
- SocialAPI MCP server: the server URL and the other supported clients.
- MCP tools reference: every tool Hermes can call.
- Custom MCP clients: API key setup in detail.
- Reviews: read and reply to Google Business Profile reviews.