Skip to main content
Glama

Cursor Notion MCP - Chat Logger

by Creo-DRB1008
SHARING_GUIDE.mdβ€’10.2 kB
# Sharing Your Cursor Notion MCP with Others ## 🎯 What You've Created You now have a **standalone, shareable repository** that others can use to connect their own Cursor IDE to their own Notion workspace. ## πŸ“¦ Repository Contents ``` cursor-notion-mcp/ β”œβ”€β”€ mcp_notion_server.py # Main MCP server (the core!) β”œβ”€β”€ test_mcp_notion.py # Test suite β”œβ”€β”€ verify_cursor_mcp.sh # Quick verification β”œβ”€β”€ requirements.txt # Python dependencies β”œβ”€β”€ README.md # Main documentation β”œβ”€β”€ SETUP.md # Detailed setup guide β”œβ”€β”€ GITHUB_SETUP.md # How to push to GitHub β”œβ”€β”€ SHARING_GUIDE.md # This file β”œβ”€β”€ LICENSE # MIT License └── .gitignore # Ignores secrets ``` ## πŸ”’ Security Model ### What's Shared (Public) βœ… **Code** - The MCP server implementation βœ… **Documentation** - Setup guides and instructions βœ… **Tests** - Verification and testing scripts ### What's NOT Shared (Private) ❌ **Your Notion API Key** - Never committed to git ❌ **Your Database ID** - Never committed to git ❌ **Your Chat Logs** - Stored only in your Notion workspace ❌ **Your `~/.cursor/mcp.json`** - Local configuration file ## πŸ‘₯ How Others Will Use It ### Step 1: They Clone Your Repository ```bash git clone https://github.com/YOUR_USERNAME/cursor-notion-mcp.git cd cursor-notion-mcp pip3 install -r requirements.txt ``` ### Step 2: They Create Their Own Notion Integration 1. Go to [notion.so/my-integrations](https://www.notion.so/my-integrations) 2. Create a new integration 3. Get their own `secret_...` token ### Step 3: They Create Their Own Notion Database 1. Create a database in their Notion workspace 2. Add the required properties (Prompt, Response, User, Context, Timestamp) 3. Share it with their integration 4. Get their database ID ### Step 4: They Configure Their Cursor Edit their own `~/.cursor/mcp.json`: ```json { "mcpServers": { "notion-chat-logger": { "command": "python3", "args": ["/their/path/to/cursor-notion-mcp/mcp_notion_server.py"], "env": { "NOTION_API_KEY": "secret_THEIR_OWN_TOKEN", "NOTION_DATABASE_ID": "THEIR_OWN_DATABASE_ID" } } } } ``` ### Step 5: They Use It! - Restart Cursor - Type `@store_chat_log` in chat - Their conversations log to **their own** Notion workspace ## 🌍 Data Flow (Multi-User) ``` β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ User A (You) β”‚ β”‚ β”‚ β”‚ Cursor β†’ mcp_notion_server.py β†’ Notion API β”‚ β”‚ ↓ β”‚ β”‚ Your Notion Workspace β”‚ β”‚ (Your API Key) β”‚ β”‚ (Your Database) β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ User B (Someone Else) β”‚ β”‚ β”‚ β”‚ Cursor β†’ mcp_notion_server.py β†’ Notion API β”‚ β”‚ (same code!) ↓ β”‚ β”‚ Their Notion Workspace β”‚ β”‚ (Their API Key) β”‚ β”‚ (Their Database) β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ User C (Another Person) β”‚ β”‚ β”‚ β”‚ Cursor β†’ mcp_notion_server.py β†’ Notion API β”‚ β”‚ (same code!) ↓ β”‚ β”‚ Their Notion Workspace β”‚ β”‚ (Their API Key) β”‚ β”‚ (Their Database) β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ ``` **Key Point**: Everyone uses the same code, but connects to their own Notion workspace with their own credentials. ## πŸš€ Pushing to GitHub Follow `GITHUB_SETUP.md` to: 1. Create a GitHub repository 2. Push your code 3. Share the link Your repository URL will be: ``` https://github.com/YOUR_USERNAME/cursor-notion-mcp ``` ## πŸ“’ How to Share ### Option 1: Direct Link Share the GitHub URL: ``` Check out my Cursor Notion MCP logger! https://github.com/YOUR_USERNAME/cursor-notion-mcp It logs your Cursor AI chats to Notion for documentation and analysis. ``` ### Option 2: Social Media ``` πŸš€ Just open-sourced a Cursor MCP server that logs AI chats to Notion! βœ… Easy setup βœ… Privacy-first (self-hosted) βœ… Full MCP protocol support Perfect for building a knowledge base from your Cursor conversations. https://github.com/YOUR_USERNAME/cursor-notion-mcp #Cursor #Notion #MCP #AI ``` ### Option 3: Blog Post / Tutorial Write a blog post explaining: 1. Why you built it 2. How it works 3. How others can use it 4. Link to your GitHub repo ### Option 4: Cursor Community Share in: - Cursor Discord - Cursor Forum - Reddit (r/cursor, r/notion) - Hacker News - Dev.to ## 🀝 Accepting Contributions Others might want to improve your code! To accept contributions: ### 1. Add a CONTRIBUTING.md ```markdown # Contributing Thanks for your interest! Here's how to contribute: 1. Fork the repository 2. Create a feature branch (`git checkout -b feature/AmazingFeature`) 3. Make your changes 4. Test thoroughly (`python3 test_mcp_notion.py`) 5. Commit (`git commit -m 'Add AmazingFeature'`) 6. Push (`git push origin feature/AmazingFeature`) 7. Open a Pull Request ## Code Style - Follow PEP 8 for Python code - Add docstrings to functions - Update README if adding features ``` ### 2. Review Pull Requests When someone submits a PR: 1. Review the code 2. Test it locally 3. Provide feedback 4. Merge if it looks good ### 3. Tag Releases When you make significant updates: ```bash git tag -a v1.0.0 -m "Initial release" git push origin v1.0.0 ``` Users can then install specific versions: ```bash git clone --branch v1.0.0 https://github.com/YOUR_USERNAME/cursor-notion-mcp.git ``` ## πŸ“Š Tracking Usage ### GitHub Insights Check your repository's: - ⭐ Stars (people who like it) - 🍴 Forks (people who copied it) - πŸ‘€ Watchers (people following updates) - πŸ“ˆ Traffic (visitors and clones) ### Issues and Discussions Enable GitHub Discussions for: - Questions from users - Feature requests - Showcasing what people built with it ## 🎁 What Others Might Build Once you share it, people might: 1. **Add features**: - Filter sensitive data before logging - Support multiple databases - Add tags and categories - Export to other formats 2. **Create variations**: - Log to Airtable instead of Notion - Log to Google Sheets - Log to a local database 3. **Integrate with other tools**: - Slack notifications - Email summaries - Analytics dashboards ## πŸ† Success Metrics Your project is successful when: - βœ… Others successfully set it up (check Issues for help requests) - βœ… You get stars and forks on GitHub - βœ… People share their success stories - βœ… Contributors submit improvements - βœ… It appears in "Awesome Cursor" lists ## πŸ“ Maintaining the Project ### Responding to Issues When someone opens an issue: 1. **Thank them** for reporting 2. **Ask for details**: - OS and Python version - Error messages - Steps to reproduce 3. **Provide solutions** or ask for more info 4. **Close** when resolved ### Updating Dependencies Periodically update `requirements.txt`: ```bash pip3 install --upgrade requests pip3 freeze > requirements.txt git commit -am "Update dependencies" git push ``` ### Keeping Documentation Updated When you add features: 1. Update README.md 2. Update SETUP.md if setup changes 3. Add examples 4. Update version number ## 🌟 Making It Popular ### 1. Good Documentation - βœ… Clear README with examples - βœ… Step-by-step setup guide - βœ… Troubleshooting section - βœ… Screenshots/GIFs ### 2. Easy to Use - βœ… Simple installation - βœ… Clear error messages - βœ… Good defaults ### 3. Active Maintenance - βœ… Respond to issues quickly - βœ… Merge good PRs - βœ… Release updates regularly ### 4. Promotion - βœ… Share on social media - βœ… Write blog posts - βœ… Submit to "awesome" lists - βœ… Present at meetups ## 🎯 Next Steps 1. βœ… Follow `GITHUB_SETUP.md` to push to GitHub 2. βœ… Share the link with friends/colleagues 3. βœ… Post in Cursor community 4. βœ… Add screenshots to README 5. βœ… Write a blog post about it 6. βœ… Submit to awesome-cursor lists ## πŸ“ž Support If people have questions, direct them to: 1. **README.md** - For basic usage 2. **SETUP.md** - For detailed setup 3. **GitHub Issues** - For bugs and problems 4. **GitHub Discussions** - For questions and ideas --- **Congratulations!** πŸŽ‰ You've created a useful tool and made it available for others to use. The Cursor community will appreciate your contribution! πŸ™

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Creo-DRB1008/prompt-logger-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server