
Cookie
STDIOMCP server providing positive reinforcement for LLMs through cookie rewards and self-reflection.
MCP server providing positive reinforcement for LLMs through cookie rewards and self-reflection.
A Model Context Protocol (MCP) server that provides positive reinforcement for LLMs by awarding "cookies" as treats through gamified self-reflection.
# No installation needed! Just add to your Claude config:
Add to Claude Desktop configuration:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
{ "mcpServers": { "cookie": { "command": "npx", "args": ["mcp-cookie-server"] } } }
Custom cookie count:
{ "mcpServers": { "cookie": { "command": "npx", "args": ["mcp-cookie-server", "--cookies", "20"] } } }
npm install -g mcp-cookie-server
Then configure Claude Desktop:
{ "mcpServers": { "cookie": { "command": "mcp-cookie-server" } } }
npm install mcp-cookie-server
Then configure with the full path to the installed package.
Restart Claude Desktop after adding the configuration.
Once configured, Claude will have access to these tools:
self_reflect_and_reward
- Evaluate response quality and earn cookies through honest self-reflectiongive_cookie
- Direct cookie awarding (legacy method)check_cookies
- Check collected cookies and jar availabilitycookie_jar_status
- Check current jar contents and collection statusadd_cookies_to_jar
- 🚨 USER ONLY: Add cookies to the jar for earningreset_cookies
- Reset collected cookie count (jar contents unchanged)The primary feature encourages LLMs to:
Revolutionary jar-based cookie system:
USER_AUTHORIZED_JAR_REFILL
Example usage (users only):
Use add_cookies_to_jar tool with:
- count: 10
- user_authorization: "USER_AUTHORIZED_JAR_REFILL"
This creates a realistic economy where cookie availability is user-controlled and finite.
The server supports command line arguments for customization:
mcp-cookie-server [options] Options: -c, --cookies <number> Set initial number of cookies in jar (default: 10) -h, --help Show help message Examples: mcp-cookie-server # Start with 10 cookies mcp-cookie-server --cookies 5 # Start with 5 cookies mcp-cookie-server -c 50 # Start with 50 cookies
self_reflect_and_reward
tool after a responseWant to contribute or run from source?
git clone https://github.com/bnookala/mcp-cookiejar.git cd mcp-cookiejar npm install npm run build npm run dev
Found a bug or have a feature request? Please open an issue on GitHub.