systemprompt
A complete, production-ready implementation of a Model Context Protocol (MCP) server demonstrating OAuth 2.1, tools, prompts, resources, sampling, and notifications using Reddit as a real-world integration example.
claude mcp add --transport stdio systempromptio-systemprompt-mcp-server npx -y @systemprompt/systemprompt-mcp-server \ --env PORT="3000" \ --env LOG_LEVEL="info" \ --env JWT_SECRET="your_jwt_secret" \ --env OAUTH_ISSUER="http://localhost:3000" \ --env REDIRECT_URL="http://localhost:3000/oauth/reddit/callback" \ --env REDDIT_USERNAME="optional_reddit_username" \ --env REDDIT_CLIENT_ID="your_reddit_client_id" \ --env REDDIT_USER_AGENT="linux:systemprompt-mcp-reddit:vX.X.X" \ --env REDDIT_CLIENT_SECRET="your_reddit_client_secret"
How to use
systemprompt-mcp-server is a production-ready MCP server that demonstrates the complete MCP specification, including OAuth 2.1, sampling, elicitation, structured data validation, and real-time notifications using Reddit as a real-world API example. It is compatible with the MCP Inspector and provides a suite of Reddit interaction tools along with prompts, resource management, and multi-user session support. To run quickly with minimal setup, you can use npx to fetch and start the server directly, then connect your MCP client to http://localhost:3000 to begin the OAuth flow and explore the available tools for Reddit interactions such as content discovery, user interactions, subreddit information, and comment thread analysis. The server also supports real-time progress notifications and AI-assisted content generation through its structured prompt and sampling features.
How to install
Prerequisites:
- Node.js and npm (or use Docker as an alternative).
- Optional: Git if you want to clone the repository.
Install options:
-
Quick start with npx (no installation):
- Ensure you have npm available.
- Run: npx -y @systemprompt/systemprompt-mcp-server
- This will start the MCP server directly.
-
Install globally via npm (for repeated use):
- npm install -g @systemprompt/systemprompt-mcp-server
- Start the server (if the package exposes a CLI entry):
- systemprompt-mcp-server or npx @systemprompt/systemprompt-mcp-server
-
Clone and install from source (for development):
- git clone https://github.com/systempromptio/systemprompt-mcp-server.git
- cd systemprompt-mcp-server
- npm install
- npm run build (if a build step exists in the project)
Configuration (required):
- Create a Reddit app at reddit.com/prefs/apps (script type) and set the redirect URI to http://localhost:3000/oauth/reddit/callback
- Create a .env file with required credentials, e.g.: REDDIT_CLIENT_ID=your_reddit_client_id REDDIT_CLIENT_SECRET=your_reddit_client_secret JWT_SECRET=your_jwt_secret PORT=3000 OAUTH_ISSUER=http://localhost:3000 REDIRECT_URL=http://localhost:3000/oauth/reddit/callback REDDIT_USER_AGENT=linux:systemprompt-mcp-reddit:v2.0.0 LOG_LEVEL=info
Additional notes
Tips and common considerations:
- The MCP server demonstrates OAuth 2.1 with PKCE, JWT tokens, and session management. Keep JWT_SECRET and client credentials secure.
- When using Docker, you can bind environment variables via a .env file or --env-file; ensure the Reddit app credentials are kept out of public repos.
- If the MCP Inspector is used, you can run npm run inspector to verify compatibility and available tools.
- For production deployments, consider container orchestration, persistent storage for sessions, and secure handling of OAuth tokens.
- If you encounter connectivity issues with Reddit APIs, check REDDIT_USER_AGENT and ensure API keys are valid. Adjust PORT as needed and expose the correct port in your network policy.
Related MCP Servers
context7
Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
reddit -buddy
Clean, LLM-optimized Reddit MCP server. Browse posts, search content, analyze users. No fluff, just Reddit data.
MiniMax -JS
Official MiniMax Model Context Protocol (MCP) JavaScript implementation that provides seamless integration with MiniMax's powerful AI capabilities including image generation, video generation, text-to-speech, and voice cloning APIs.
systemprompt -notion
This an Model Context Protocol (MCP) server that integrates Notion into your AI workflows. This server enables seamless access to Notion through MCP, allowing AI agents to interact with pages, databases, and comments.
mcp-bundler
Is the MCP configuration too complicated? You can easily share your own simplified setup!
systemprompt -core
The core MCP extension for Systemprompt MCP multimodal client