Skip to main content
Glama
osamuelnovaes

mcp-reddit-publisher

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 use github:osamuelnovaes/mcp-reddit-publisher)

  • Por padrão é seguro: REDDIT_DRY_RUN=true, então nada é publicado de verdade até você trocar para false.

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.

Related MCP server: mcp-reddit-publisher

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 arquivo claude_desktop_config.json automaticamente.

  • Não publica nada no Reddit durante a instalação.

  • Mantém REDDIT_DRY_RUN=true por padrão.

Credenciais Reddit

Crie um app no Reddit uma vez:

  1. Acesse https://www.reddit.com/prefs/apps

  2. Clique em create another app.

  3. Escolha o tipo script para uso pessoal/local.

  4. Copie:

    • client_id

    • client_secret

  5. 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

Available Tools

5 tools
get_subreddit_rulesGet subreddit rulesB

Fetches subreddit rules and flags obvious promotional-posting risks.

ParametersJSON Schema
NameRequiredDescriptionDefault
subredditYesSubreddit name, with or without r/ prefix.

TDQS

B3.2/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are present, so the description should fully disclose behavioral traits. It only states it fetches rules and flags risks, but omits details about output format, authentication needs, rate limits, or side effects. The risk-flagging behavior is vague.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single concise sentence that front-loads the main action. It could be slightly more structured by separating the two actions, but it is efficient with no unnecessary words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple, read-only tool with one parameter and no output schema, the description is minimally adequate. However, it lacks details on output format, error behavior, and the nature of risk flags, which are gaps for an AI agent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% for the single parameter 'subreddit', and its description is already explicit. The tool's description adds no new information about this parameter, so the baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool fetches subreddit rules and flags promotional-posting risks, using a specific verb+resource. It also distinguishes itself from sibling tools like preview_text_post and submit_text_post, which deal with posting, not rules.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit when-to-use or when-not-to-use guidance is provided. The usage is only implied by the purpose, and no alternatives are mentioned despite the presence of sibling tools like health that might offer related information.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

healthHealth checkA

Shows current configuration status without revealing secrets.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A3.8/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description adds the behavioral trait that secrets are not revealed, but lacks details on what 'configuration status' includes, side effects, or required permissions. With no annotations, the description could provide more depth.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence with no wasted words, perfectly concise and front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has no parameters, no output schema, and a simple purpose, the description is largely complete. It could specify response format or status details, but is adequate for a health check.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

There are no parameters, and schema coverage is 100%. Baseline is 4, and the description adds no further param meaning due to absence.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool shows current configuration status, with a specific verb and resource. It is distinct from sibling tools which are subreddit-related.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives. While siblings are unrelated, the description does not include context about typical use cases or prerequisites.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

preview_text_postPreview text postC

Validates and previews a Reddit text post without publishing.

ParametersJSON Schema
NameRequiredDescriptionDefault
subredditYes
titleYes
bodyYes
sendRepliesNo
nsfwNo
spoilerNo
flairIdNo

TDQS

C2.4/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries full burden. It mentions 'validates and previews' but gives no details on what validation is performed, whether it calls the Reddit API, or the nature of the preview output.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence with no wasted words. However, it is too brief to be fully informative; conciseness is achieved at the expense of completeness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 7 parameters, no output schema, and no annotations, the description is wholly inadequate. It fails to explain the preview mechanism, validation criteria, error handling, or return format.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 0% description coverage and the tool description does not mention any parameter. Agents must rely solely on parameter names, which may be ambiguous (e.g., sendReplies, flairId).

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description explicitly states the tool validates and previews a Reddit text post without publishing, which is a clear verb+resource combination. However, it does not differentiate from the sibling submit_text_post beyond implying non-publication.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives like submit_text_post or get_subreddit_rules. The description does not advise on prerequisites or typical workflows.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

search_subredditsSearch subredditsB

Searches Reddit communities by query to help find audience fit before posting.

ParametersJSON Schema
NameRequiredDescriptionDefault
queryYes
limitNo

TDQS

B3.4/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description must fully disclose behavior. It does not explain what is returned (e.g., subreddit names, descriptions), sorting, pagination, or rate limits, leaving the agent underinformed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, concise sentence with no redundant information. While it is efficient, some additional detail on parameters or behavior would improve utility without sacrificing conciseness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has 2 parameters, no output schema, and no annotations, the description is incomplete. It fails to clarify the return format, error handling, or what constitutes a valid query, which is critical for an AI agent to use it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, meaning the description must explain parameters. It only mentions 'query' indirectly ('by query') but does not describe the 'query' parameter's semantics (e.g., case sensitivity, partial matching) or the 'limit' parameter at all.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool searches Reddit communities by query, with a specific use case of finding audience fit before posting. It distinguishes from sibling tools like 'get_subreddit_rules' and 'submit_text_post'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for audience research before posting, which is a reasonable use case. However, it does not explicitly state when not to use or mention alternatives, though the context of sibling tools helps.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

submit_text_postSubmit text postB

Publishes a Reddit text post. By default REDDIT_DRY_RUN=true prevents real publishing; set false only after testing.

ParametersJSON Schema
NameRequiredDescriptionDefault
subredditYes
titleYes
bodyYes
sendRepliesNo
nsfwNo
spoilerNo
flairIdNo
overrideRuleCheckNoIf true, allows posting even when the automatic rule check flags promotional risks.

TDQS

B3.3/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description reveals the dry run behavior, which is important for safety. But it lacks other behavioral details such as error handling, rate limits, or side effects, which are necessary for a mutating tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise with two sentences, front-loading the key action and then providing a critical safety note. Every sentence serves a purpose with no fluff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has 8 parameters, 3 required, no output schema, and no annotations, the description is insufficient. It omits parameter meanings, return values, and error conditions, leaving the agent underinformed for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description provides no explanation of the input parameters beyond the schema. Schema description coverage is only 13% (one parameter described), so the description should compensate but does not. The dry run note is about an environment variable, not a parameter.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool 'Publishes a Reddit text post,' which is a specific verb and resource. It distinguishes itself from sibling tools like preview_text_post and search_subreddits by indicating actual submission.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description mentions the DRY_RUN environment variable and advises setting it false only after testing, which gives some guidance on when to use the tool. However, it does not provide when-not-to-use conditions or mention alternative tools like for link posts.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 5 tool updatesv0.1.0
    • First observedget_subreddit_rules
    • First observedhealth
    • First observedpreview_text_post
    • First observedsearch_subreddits
    • First observedsubmit_text_post

TDQS

A3.6/5.0

Scored across 5 tools

Disambiguation5/5

Each tool has a distinct purpose: fetching subreddit rules, checking health, previewing a post, searching communities, and submitting a post. No tool overlaps in functionality.

Naming Consistency4/5

All tool names follow snake_case with a verb_noun pattern except for 'health', which is a single word but commonly accepted. Overall naming is consistent and predictable.

Tool Count5/5

With 5 tools, the server is well-scoped for the Reddit publishing domain. Each tool covers a necessary step in the workflow without being too few or excessive.

Completeness4/5

The tool set covers the core publishing workflow: search subreddits, check rules, preview, and submit. Missing features like deleting posts or handling other post types, but sufficient for text post publishing.

Maintenance

ActivityInactive
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    B
    quality
    D
    maintenance
    An MCP server that provides both read-only and authenticated access to Reddit content and interactions without requiring a developer API key. It enables users to browse posts, search subreddits, and perform write actions like commenting and voting by leveraging browser session cookies.
    8
    2
    -
  • A
    license
    A
    quality
    B
    maintenance
    An MCP server that enables authenticated Reddit account actions like posting, commenting, voting, and messaging via the Reddit API.
    12
    21 npm
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    MCP server for interacting with Reddit via OAuth, with tiered tools for reading, writing, and moderation actions.
    MIT