Steps
-
Put the key in your shell profile so it survives restarts (an
exporttyped inside an agent’s tool shell is lost when that shell exits, and the client then gets 401):Open a new terminal and startclaudefrom there. -
Add the server:
Single quotes keep
${SOCIAL_MONITOR_KEY}unexpanded, so the key is not written to the config file. Claude Code expands it at connect time.claude mcp adddoes not validate credentials: a wrong key only fails later. -
Restart the session, then verify:
Inside a session run
/mcp.social-monitormust showConnected. -
Ask the agent to call
list_channelsand report the channels.
Scope
If the command fails: JSON config
Add to.mcp.json (project) or ~/.claude.json:

