mcp-reddit-publisher
MCP server for publishing to Reddit with safety features like dry-run, allowlist, and rule checking.
README
mcp-reddit-publisher
MCP para Claude/Codex/OpenCode publicar no Reddit com segurança.
- Repo: https://github.com/osamuelnovaes/mcp-reddit-publisher
- npm:
mcp-reddit-publisher(ainda não publicado; por enquanto usegithub:osamuelnovaes/mcp-reddit-publisher) - Por padrão é seguro:
REDDIT_DRY_RUN=true, então nada é publicado de verdade até você trocar parafalse.
Instalação rápida
Você não precisa clonar o projeto, instalar dependências nem rodar build.
Claude Code
Rode uma vez:
npx -y github:osamuelnovaes/mcp-reddit-publisher install claude-code \
--client-id "SEU_REDDIT_CLIENT_ID" \
--client-secret "SEU_REDDIT_CLIENT_SECRET" \
--refresh-token "SEU_REDDIT_REFRESH_TOKEN" \
--user-agent "mcp-reddit-publisher/0.1.0 by u/SEU_USUARIO" \
--allowed "SideProject,saas,startups"
Depois reinicie o Claude Code e peça:
Use o reddit-publisher para verificar o health e buscar subreddits sobre SaaS.
Claude Desktop
Rode uma vez:
npx -y github:osamuelnovaes/mcp-reddit-publisher install claude-desktop \
--client-id "SEU_REDDIT_CLIENT_ID" \
--client-secret "SEU_REDDIT_CLIENT_SECRET" \
--refresh-token "SEU_REDDIT_REFRESH_TOKEN" \
--user-agent "mcp-reddit-publisher/0.1.0 by u/SEU_USUARIO" \
--allowed "SideProject,saas,startups"
Depois reinicie o Claude Desktop.
Só testar se o pacote roda
npx -y github:osamuelnovaes/mcp-reddit-publisher --help
Se apareceu a ajuda, o pacote baixou e executou corretamente.
O que o comando install faz
install claude-code: chama o CLI oficial do Claude Code e adiciona o MCP automaticamente.install claude-desktop: edita/cria o arquivoclaude_desktop_config.jsonautomaticamente.- Não publica nada no Reddit durante a instalação.
- Mantém
REDDIT_DRY_RUN=truepor padrão.
Credenciais Reddit
Crie um app no Reddit uma vez:
- Acesse https://www.reddit.com/prefs/apps
- Clique em
create another app. - Escolha o tipo
scriptpara uso pessoal/local. - Copie:
client_idclient_secret
- Configure um user agent, por exemplo:
mcp-reddit-publisher/0.1.0 by u/seu_usuario
A forma recomendada é usar:
REDDIT_REFRESH_TOKEN
Alternativa para app script:
--username "SEU_USUARIO" --password "SUA_SENHA"
Codex, OpenCode ou outros clientes MCP
Se o cliente não tem instalador automático ainda, gere o bloco pronto:
npx -y github:osamuelnovaes/mcp-reddit-publisher setup codex \
--client-id "..." \
--client-secret "..." \
--refresh-token "..." \
--user-agent "mcp-reddit-publisher/0.1.0 by u/SEU_USUARIO"
Troque codex por:
setup opencode
setup claude
setup json
Ferramentas MCP disponíveis
health: valida a configuração sem expor secrets.search_subreddits: busca comunidades por termo.get_subreddit_rules: lê regras do subreddit e aponta riscos.preview_text_post: valida e mostra o post sem publicar.submit_text_post: publica o post respeitando dry-run, allowlist, regras e rate limit.
Segurança por padrão
Nada é publicado por padrão:
REDDIT_DRY_RUN=true
Para publicar de verdade, só depois de testar:
npx -y github:osamuelnovaes/mcp-reddit-publisher install claude-code \
--client-id "..." \
--client-secret "..." \
--refresh-token "..." \
--user-agent "mcp-reddit-publisher/0.1.0 by u/SEU_USUARIO" \
--dry-run false
Recomendações:
REDDIT_ALLOWED_SUBREDDITS=SideProject,saas,startups
REDDIT_REQUIRE_RULE_CHECK=true
REDDIT_MIN_SECONDS_BETWEEN_POSTS=300
Desenvolvimento local
git clone https://github.com/osamuelnovaes/mcp-reddit-publisher.git
cd mcp-reddit-publisher
npm install
npm run typecheck
npm test
npm run build
node scripts/smoke.mjs
Licença
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.