commonroom-mcp
MCP server for integrating Common Room API with Amazon Q CLI and Claude Code, enabling management of activities, segments, and organizations through natural language queries.
README
Common Room MCP Server
⚠️ Note: This is an unofficial MCP server for Common Room
Here's a self-hosted MCP for integrating the Common Room API with Amazon Q CLI and Claude Code. The goal is to be able to ask questions and make updates easily for your own instance. Hope this makes it easier to keep your activities, segments, and organizations up to date! 🥳
How It Works
This MCP server exposes Common Room API functionality as tools that Q CLI can use:
- MCP Protocol: Server communicates with Q CLI via Model Context Protocol
- Tool Registration: Each Common Room API endpoint becomes a callable tool
- Authentication: Uses your Common Room API key from environment variables
- JSON Responses: All data returned as formatted JSON for easy reading
Common Room MCP Architecture
%%{init: {'flowchart': {'curve': 'basis'}}}%%
graph LR
A["💻<br/>Q CLI"] -.-> B["🔌<br/>MCP Server"]
C["💻<br/>Claude Code"] -.-> B
B <--> D["☁️<br/>Common Room API"]
style A fill:#6366f1,stroke:#000,stroke-width:3px,color:#fff
style C fill:#ff9900,stroke:#000,stroke-width:3px,color:#000
style B fill:#C11C84,stroke:#000,stroke-width:3px,color:#fff
style D fill:#10b981,stroke:#000,stroke-width:3px,color:#000
When you ask Q CLI or Claude Code to "get Common Room activity types", it:
- Calls the
commonroom_get_activity_typestool - Server makes API request to Common Room
- Returns formatted results to Q CLI
- The agent presents the data to you in context
Quick Setup
- Clone/download this repository
- Install dependencies:
pip install -r requirements.txt - Create API Signal: Go to
https://app.commonroom.io/community/YOUR-COMMUNITY-ID/settings/sources/apito create an API signal and get yourdestinationSourceId(see Common Room docs) - Configure environment: Copy
.env.exampleto.envand add your API key and destination ID - Configure MCP client (see INSTALL.md for detailed instructions)
Claude Code
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"commonroom": {
"command": "python",
"args": ["/path/to/commonroom-mcp/server.py"],
"env": {"COMMONROOM_KEY": "${COMMONROOM_KEY}"}
}
}
}
Amazon Q CLI
q chat --mcp-config ~/.config/amazon-q/mcp-config.json
📖 Complete Installation Guide
🔧 Detailed Setup Guide
Setup
-
Install dependencies:
cd /path/to/commonroom-mcp pip install -r requirements.txt -
Get Common Room API Token:
- Go to your Common Room community settings:
https://app.commonroom.io/community/YOUR-COMMUNITY-ID/settings/api-tokens - Click "Create API Token"
- Give it a name (e.g., "MCP Server")
- Copy the generated token
- See Common Room API Token docs for details
- Go to your Common Room community settings:
-
Find your Destination ID (for adding activities/users):
- Go to Sources settings:
https://app.commonroom.io/community/YOUR-COMMUNITY-ID/settings/sources - Click on "API" source:
https://app.commonroom.io/community/YOUR-COMMUNITY-ID/settings/sources/api - If no API signal exists: Create one first (see Common Room API Signal docs)
- Copy the Destination ID number (e.g.,
138683)
- Go to Sources settings:
-
Configure environment:
cp .env.example .env # Edit .env file with your credentials: # COMMONROOM_KEY=your_api_token_here # COMMONROOM_BASE_URL=https://app.commonroom.io/community/your-community-id # COMMONROOM_DESTINATION_ID=your_destination_id_here # COMMONROOM_SIGNAL_ID=your_signal_id_here (optional) -
Test server:
python server.py
Available Tools
commonroom_get_activity_types- List all activity typescommonroom_get_segments- List all segmentscommonroom_get_tags- List all tagscommonroom_get_user- Get user by email (includes dashboard_url)commonroom_add_activity- Add activitycommonroom_add_user- Add usercommonroom_get_dashboard_urls- Get dashboard section URLscommonroom_get_member_url- Get individual member page URLcommonroom_get_organization_url- Get individual organization page URLcommonroom_get_segment_url- Get individual segment page URL
Usage in Q CLI
Once configured, you can use Common Room tools in Q CLI:
Get all Common Room activity types
Get segments for my team
Add a new blog post activity to Common Room
Show me the URL for user ID 12345
Example Queries
Get activity types:
Show me all Common Room activity types
Find user:
Get Common Room user data for trag@example.com
Get member URL:
What's the URL for Common Room member 226882839?
Add activity:
Add a blog post activity to Common Room by chris@trag.dev with title "Fire TV Development Guide"
Add webinar activity by Sarah Johnson (sarah@startup.com, Twitter: @sarahj, Company: TechCorp) with title "Building Smart TV Apps"
📋 Click here for more examples prompts >>
Key Features
Auto-Generated IDs
- No manual ID management - Server automatically generates unique IDs for activities and users
- Format:
activity_1703123456_a1b2c3d4anduser_1703123456_e5f6g7h8 - Deduplication - Common Room handles user merging based on email/social handles
Flexible User Data
Provide any combination of user information:
- Email address (recommended for deduplication)
- Social handles (Twitter, LinkedIn, GitHub, Discord, Slack)
- Company details (name, job title)
- Personal info (full name, location, bio)
Example: Just say "Add blog post by john@company.com (Twitter: @johndev)" and the server handles the rest!
Tool Details
commonroom_get_activity_types- Returns all available activity types (article, webinar, etc.)commonroom_get_segments- Returns audience segments in your Common Roomcommonroom_get_tags- Returns all tags for categorizationcommonroom_get_user- Finds user by email address (includes dashboard_url)commonroom_add_activity- Creates new activity recordcommonroom_add_user- Creates new user recordcommonroom_get_dashboard_urls- Returns URLs for all dashboard sections (requires COMMONROOM_BASE_URL)commonroom_get_member_url- Returns URL for individual member pagecommonroom_get_organization_url- Returns URL for individual organization pagecommonroom_get_segment_url- Returns URL for individual segment page
Documentation
- INSTALL.md - Complete installation guide for Claude Code and Amazon Q CLI
- SETUP.md - Detailed credential setup with screenshots and links
- EXAMPLES.md - Sample prompts and queries to test the MCP server
- SPEC.md - Technical specification and requirements
- openapi.json - Common Room API specification
Keeping Up to Date
The server automatically checks for changes to Common Room's OpenAPI spec updates 30 seconds after startup and logs any available updates.
Manual update:
./update_spec.sh
Check for updates:
python version_checker.py
Security
- Never commit your
.envfile or API keys - Use environment variables for sensitive data
- Keep your Common Room API token secure
- This server runs locally and doesn't send data to third parties
Support
Looking for support? Check out the Common Room docs or join the Uncommon community for product help.
For Common Room platform support, visit: https://www.commonroom.io/contact/
This MCP server is not officially supported by Common Room.
Contributing
See CONTRIBUTING.md for development guidelines.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。
mcp-server-qdrant
这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。