A Model Context Protocol (MCP) server that integrates with Canny.io for customer feedback management. Built following CIQ's CODE2 principles to deliver Customer-Centric, Optimistic, Dedicated, Efficient, and Excellent solutions.
- Board Management: List and access all available Canny boards
- Post Retrieval: Get detailed post information with flexible filtering
- Search Capability: Find posts across boards using powerful search
- Content Management: Create and update posts seamlessly
- Rate Limiting: Built-in protection against API rate limits
- Error Handling: Robust error handling with detailed feedback
- Validation: Input validation using Zod schemas
- Type Safety: Full TypeScript implementation
- Node.js 18 or higher
- Canny.io API key
-
Install dependencies:
npm install
-
Set up environment variables:
export CANNY_API_KEY="your_api_key_here" export CANNY_BASE_URL="https://canny.io/api/v1" # Optional
-
Build the server:
npm run build
-
Run in development mode:
npm run dev
CANNY_API_KEY: Your Canny.io API key
CANNY_BASE_URL: API base URL (default: https://canny.io/api/v1)CANNY_TIMEOUT: Request timeout in ms (default: 30000)CANNY_MAX_RETRIES: Max retry attempts (default: 3)CANNY_RATE_LIMIT_RPM: Requests per minute limit (default: 60)CANNY_RATE_LIMIT_BURST: Burst limit (default: 10)
get_boards: List all accessible Canny boards
get_posts: Get posts from a specific board with filtering options (returns structured JSON)get_post: Get detailed information about a specific post (returns normalized JSON)search_posts: Search for posts across boards with pagination metadatacreate_post: Create a new post in a board (returns created post payload)update_post: Update an existing post (returns updated post payload)
get_categories: List categories for a boardget_comments: List comments for a postget_users: List users with optional search & paginationget_tags: List tags optionally filtered by board
{
"name": "get_boards",
"arguments": {}
}{
"name": "get_posts",
"arguments": {
"boardId": "board_123",
"limit": 10,
"status": "open",
"sort": "newest"
}
}{
"name": "search_posts",
"arguments": {
"query": "feature request",
"limit": 20,
"status": "open"
}
}{
"name": "create_post",
"arguments": {
"authorId": "user_123",
"boardId": "board_123",
"title": "New Feature Request",
"details": "Detailed description of the feature"
}
}npm testnpm run lint
npm run lint:fixnpm run buildAdd to your Claude MCP configuration:
{
"mcpServers": {
"canny": {
"command": "node",
"args": ["/path/to/canny-mcp-server/dist/server.js"],
"env": {
"CANNY_API_KEY": "your_api_key_here"
}
}
}
}The server implements comprehensive error handling:
- API rate limiting protection
- Input validation with detailed error messages
- Network error recovery with retries
- Graceful handling of API failures
Following CIQ's CODE2 principles:
- Customer-Centric: Focus on user value in every contribution
- Optimistic: Approach challenges as opportunities
- Dedicated: Own your contributions fully
- Efficient: Leverage existing solutions and automate where possible
- Excellent: Maintain high standards and continuous improvement
MIT License