by bnookala
Cookie Jar enables secure management and automation of cookies for web automation, testing, and session handling across
A gamification system that rewards AI models with virtual cookies for self-assessment and quality responses. Designed to encourage self-reflection and positive reinforcement in AI interactions.
Cookie Jar is a community-built MCP server published by bnookala that provides AI assistants with tools and capabilities via the Model Context Protocol. Cookie Jar enables secure management and automation of cookies for web automation, testing, and session handling across It is categorized under ai ml. This server exposes 6 tools that AI clients can invoke during conversations and coding sessions.
You can install Cookie Jar in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
MIT
Cookie Jar is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
Add new capabilities to Claude beyond text generation
Example
Access external data sources, execute code, interact with tools and services
Transform Claude from chatbot to action-taking agent
Provide Claude with access to relevant context and data
Example
Load project documentation, access knowledge bases, query databases
Get more accurate, context-aware responses
Automate multi-step workflows combining AI and external tools
Example
Research → Summarize → Create document → Send notification
Complete complex tasks end-to-end without manual steps
Share your MCP server with the developer community
I recommend Cookie Jar for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
I recommend Cookie Jar for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
Strong directory entry: Cookie Jar surfaces stars and publisher context so we could sanity-check maintenance before adopting.
Strong directory entry: Cookie Jar surfaces stars and publisher context so we could sanity-check maintenance before adopting.
Useful MCP listing: Cookie Jar is the kind of server we cite when onboarding engineers to host + tool permissions.
Cookie Jar is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
Cookie Jar is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.
Cookie Jar is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
We evaluated Cookie Jar against two servers with overlapping tools; this profile had the clearer scope statement.
Cookie Jar is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.
showing 1-10 of 55
A Model Context Protocol (MCP) server that provides positive reinforcement for LLMs by awarding "cookies" as treats through gamified self-reflection.
<a href="https://glama.ai/mcp/servers/@bnookala/mcp-cookiejar"> <img width="380" height="200" src="https://glama.ai/mcp/servers/@bnookala/mcp-cookiejar/badge" alt="Cookie Server MCP server" /> </a># 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_REFILLExample 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.
Prerequisites
Time Estimate
15-60 minutes depending on server complexity
Steps
Troubleshooting
✓ Do
✗ Don't
💡 Pro Tips
Architecture
Model Context Protocol standardizes how AI hosts (Claude, Cursor) communicate with external tools and data sources through server implementations.
Protocols
Compatibility
✓ Use when
Use when you need Claude to access external data, execute actions, or integrate with tools. Best for extending AI capabilities beyond conversation.
✗ Avoid when
Avoid when native integrations exist (use official APIs directly), for real-time critical systems, or when security/compliance requires zero external dependencies.