For agents
MCP server
Connect Claude, Cursor, ChatGPT or any MCP client: a remote server with OAuth, or a local stdio server.
One tool set, two ways to run it. The remote server at https://api.groundsocial.dev/mcp (Streamable HTTP) signs in with OAuth or takes a key as a Bearer token. The stdio server npx -y @groundsocial/mcp runs on your machine.
Remote server
- URL:
https://api.groundsocial.dev/mcp. - Clients that support OAuth open a browser: sign in, pick the account that pays, approve. See Authentication.
- Clients that take a static header:
Authorization: Bearer $GROUNDSOCIAL_API_KEY. - Listing tools works without signing in, so you can look before you connect.
Install
# Remote, signs in with OAuth in the browser:
claude mcp add --transport http groundsocial https://api.groundsocial.dev/mcp
# Or local (stdio), with your key:
claude mcp add groundsocial -e GROUNDSOCIAL_API_KEY=gs_live_… -- npx -y @groundsocial/mcpChatGPT: add a connector with the remote URL https://api.groundsocial.dev/mcp and sign in when asked. Claude.ai: add it as a custom connector with the same URL.
groundsocial mcp from the CLI prints these snippets for your setup. It edits nothing.
Tools
| Tool | Credits | What it does |
|---|---|---|
reddit_subreddit_get | 1 | A subreddit: description, rules, member count, flags. |
reddit_subreddit_posts | 1 | Posts in a subreddit, by hot, new, top, rising or controversial. |
reddit_post_get | 1 | One post with its full comment tree. |
reddit_post_comments | 1 | Comments on a post, paginated, with "more" threads expanded. |
reddit_user_get | 1 | A public user profile: karma, age, flags. |
reddit_user_posts | 1 | Posts a user submitted. |
reddit_user_comments | 1 | Comments a user wrote. |
reddit_search_posts | 2 | Search posts across Reddit or in one subreddit. |
reddit_search_subreddits | 1 | Find subreddits by name or topic. |
list_endpoints | 0 | Every tool with its price. Needs no key. |
estimate_cost | 0 | Price a job before running it. Needs no key. |
account_balance | 0 | Credits left on the account. |
agent_signup | 0 | Create a free account when there is no key. |
Every tool result reports cost_credits and credits_remaining, so an agent always knows what it spent. All tools are read-only: nothing posts, votes or messages.
No key yet
The stdio server looks for a key in GROUNDSOCIAL_API_KEY, then in the config file it shares with the CLI (~/.config/groundsocial/config.json), and with neither it creates a free account on the spot and saves the key there. If signup asks a question, the tool result carries it; answer by calling agent_signup with challenge_token and answer, then retry. Set GROUNDSOCIAL_AUTO_SIGNUP=false to turn this off, for example in CI.