Back to Home
jordanburke icon

reddit-mcp-server

Verified Safe

by jordanburke

Overview

Provides tools for fetching and creating Reddit content through a Model Context Protocol (MCP) server.

Installation

Run Command
npx reddit-mcp-server

Environment Variables

  • REDDIT_CLIENT_ID
  • REDDIT_CLIENT_SECRET
  • REDDIT_USER_AGENT
  • REDDIT_USERNAME
  • REDDIT_PASSWORD
  • TRANSPORT_TYPE
  • PORT
  • HOST
  • OAUTH_ENABLED
  • OAUTH_TOKEN

Security Notes

The server correctly loads sensitive credentials (Client ID, Client Secret, Username, Password, OAuth Token) from environment variables, preventing hardcoding. Input validation for tool parameters is implemented using Zod, reducing common injection vulnerabilities. The RedditClient handles OAuth2 token acquisition and refresh, and includes a retry mechanism for 401 errors. Optional OAuth protection for the HTTP endpoint is available, with token generation if none is provided during setup. No 'eval' or obvious malicious patterns were found in the provided code. However, the OAuth token generation during startup if `OAUTH_ENABLED` is true but `OAUTH_TOKEN` is unset, prints the token to console.error, which might be a minor security exposure if not properly managed in a production environment.

Similar Servers

Stats

Interest Score37
Security Score9
Cost ClassMedium
Avg Tokens1200
Stars9
Forks6
Last Update2026-01-18

Tags

redditsocial mediaapi integrationcontent managementmcp