Haiven MCP Server
Connects AI tools to your organization's Haiven prompts, allowing seamless access to expert-crafted prompts for user stories, code reviews, and more without switching apps.
README
Haiven MCP Server
Connect your AI tools directly to your organization's Haiven prompts. Use expertly crafted prompts from Claude Desktop, VS Code, Cursor, and other AI tools without switching apps.
What You Get
- ✅ Access your organization's expert prompts directly in your AI tools
- ✅ Ready-to-use prompts for user stories, code reviews, architecture decisions, PRDs, and more
- ✅ No app switching - stay in your current workflow
- ✅ Works with any MCP-compatible tool - Claude Desktop, VS Code, Cursor, and more
- ✅ Seamless integration - prompts appear as if they're built into your AI tool
- ✅ Context preservation - your conversations continue uninterrupted
- ✅ Native MCP prompts - each Haiven prompt appears as a first-class MCP prompt
- ✅ Smart caching - faster performance with intelligent content caching
- ✅ Backward compatibility - existing tools still work alongside new prompt interface
Quick Start
Prerequisites: Docker installed on your machine
-
Get your API key from your Haiven web interface (API Keys → Generate New API Key)
🔒 Security note: Store your API key securely and never commit it to version control
For detailed steps: See Get Your API Key section below
-
Add this configuration to your AI tool's MCP settings:
"haiven-prompts": { "command": "docker", "args": [ "run", "-i", "--rm", "--pull=always", "-e", "HAIVEN_API_KEY=your-api-key-here", "-e", "HAIVEN_API_URL=https://your-haiven-server.com", "ghcr.io/tw-haiven/haiven-mcp-server:latest" ] }Where to add it:
- Claude Desktop:
~/Library/Application Support/Claude/config.json(Mac) or%APPDATA%\Claude\config.json(Windows) - VS Code: Settings → Extensions → search "mcp" → Configure MCP servers
- Cursor:
~/Library/Application Support/Cursor/config.json(Mac) or%APPDATA%\Cursor\config.json(Windows)
- Claude Desktop:
-
Replace the values:
your-api-key-here→ Your API key from step 1https://your-haiven-server.com→ Your organization's Haiven server URL
-
Restart your AI tool
Test Your Setup
After completing the setup, verify everything works:
- Check MCP connection: In your AI tool, look for "haiven-prompts" in the connected servers list
- Test prompt access: Ask your AI tool:
"What Haiven prompts are available?" - Verify response: You should see a list of prompts from your organization's Haiven system
✅ Success indicators:
- Your AI tool shows "haiven-prompts" as connected
- You can see your organization's prompts listed
- No authentication errors in the AI tool's logs
Basic Usage
After setup, you can access your Haiven prompts in two ways:
Native MCP Prompts (Recommended)
Each Haiven prompt appears as a first-class MCP prompt in your AI tool:
Direct prompt invocation:
"Use the ADR prompt to help me document this architecture decision"
Browse available prompts:
"Show me all available Haiven prompts"
Use prompts with context:
"Use the user story prompt to break down this feature request"
Legacy Tools (Backward Compatibility)
For clients that need the tool-based interface:
List all prompts:
"What Haiven prompts are available?"
Use a specific prompt:
"Use the Haiven prompt for creating user stories and help me break down this feature request"
Execute prompts with context:
"Execute the Haiven code review prompt on my current file"
Common Issues
🔧 Quick fixes for the most common problems:
- "Docker not found": Install Docker Desktop from docker.com and ensure it's running
- "Authentication failed": Double-check your API key and Haiven server URL are correct
- "MCP server not connecting": Restart your AI tool and verify the configuration file syntax
For more help: See Complete Troubleshooting Guide
Get Your API Key
- Open Haiven in your browser (the web version your organization uses)
- Login with your work credentials (OKTA/SSO)
- Click "API Keys" in the top navigation menu
- Click "Generate New API Key"
- Fill out the form:
- Name: "AI Tool Integration"
- Expiration: 30 days (or your preference)
- Copy the generated key - Save it immediately! You won't see it again
- Store it safely (password manager recommended)

Detailed Documentation
- Complete Setup Guide - Step-by-step instructions for all AI tools
- Troubleshooting - Common issues and solutions
- Developer Guide - Local development and contributing
Technical Details & IT Information
Architecture
This MCP server provides a bridge between AI applications and the Haiven AI prompts API using the Model Context Protocol.
Key Features:
- Standard MCP Protocol: JSON-RPC 2.0 over stdin/stdout
- Native MCP Prompts: Each Haiven prompt appears as a first-class MCP prompt
- Smart Caching: Two-tier caching (metadata + content) for optimal performance
- API Key Authentication: Secure connection to your Haiven server
- Backward Compatibility: Legacy tools still work alongside new prompt interface
- Multi-Architecture Docker: Supports AMD64 and ARM64
- Security Hardened: Comprehensive security scanning and validation
Available Interfaces
Native MCP Prompts (Primary Interface)
Each Haiven prompt is registered as a native MCP prompt with:
- Direct invocation by prompt identifier (e.g.,
/adr-9e6a21eb) - Rich metadata including title, description, and categories
- Smart caching for optimal performance
- Seamless integration with MCP-compatible AI tools
MCP Tools
get_prompts
Retrieves all available prompts with their metadata from the cached prompt service.
Parameters: None
Returns: JSON object with prompts array and total count
Example Response:
{
"prompts": [
{
"identifier": "adr-9e6a21eb",
"title": "Architecture Decision Record",
"categories": ["architecture"],
"help_prompt_description": "Create structured ADRs",
"help_user_input": "Describe the decision context",
"help_sample_input": "We need to choose a database for our new service",
"type": "chat"
}
],
"total_count": 1
}
get_prompt_text
Fetches the content of a specific prompt by ID with full metadata.
Parameters:
prompt_id(required): ID of the prompt to fetch
Returns: JSON object containing the prompt content
Example Response:
{
"prompt_id": "prd-template-ideate",
"title": "Draft PRD",
"content": "You are a product manager. Help create a comprehensive Product Requirements Document...",
"type": "chat",
"follow_ups": ["What metrics should we track?", "How do we prioritize features?"]
}
get_casper_workflow
Provides the Casper workflow methodology for AI development guidance, supporting both sharing with LLMs and saving to tool-specific directories.
Parameters:
section(optional): "explore", "craft", "polish", or "full" (default)mode(optional): "share" (default) or "save"tool_context(optional, save mode): "cursor", "vscode", or "generic" (auto-detected)
Modes:
- Share: Returns Casper workflow content for immediate use by the LLM.
- Save: Writes Casper workflow to the appropriate directory for your AI tool (e.g.,
.cursor/rules/,.github/instructions/, or project root).
Example (Share):
{
"tool": "get_casper_workflow",
"mode": "share",
"section": "explore",
"content": "# 🔍 Casper's Collaborative Exploration Phase...",
"sections_available": ["explore", "craft", "polish", "full"]
}
Example (Save):
{
"tool": "get_casper_workflow",
"mode": "save",
"section": "explore",
"tool_context": "cursor",
"file_path": "/path/to/project/.cursor/rules/casper-explore.mdc",
"status": "success"
}
Integration: Casper workflow files are auto-saved in the correct format and location for Cursor, VS Code, or generic tools. Tool context is detected automatically.
Phases:
- Explore: Analysis & planning
- Craft: TDD implementation
- Polish: Quality refinement
For IT Teams
This MCP server:
- Uses standard MCP protocol (JSON-RPC 2.0 over stdin/stdout)
- Supports API key authentication
- No data stored locally - all queries go to your Haiven server
- Works with any MCP-compatible AI tool
- Multi-architecture Docker support (AMD64 and ARM64)
Deployment Options
- Docker: Container available for enterprise deployment (recommended)
- Individual install: Users run Docker commands on their machines
- Centralized: Deploy via software distribution systems
Setup Resources
- VS Code MCP Servers - Comprehensive VS Code guide
- Claude Code MCP - Official Claude documentation
- Cursor MCP Setup - Cursor-specific instructions
- MCP Protocol Overview - General MCP concepts
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests for new functionality
- Submit a pull request
Pre-commit hooks: Install with pip install pre-commit && pre-commit install
Testing: Run tests with poetry run pytest tests/ -v
Privacy
The MCP server implementation does not collect, process, or transmit any client-specific data, user inputs, conversation history, or session information. It operates purely as a content delivery mechanism for accessing the Haiven prompt library. Unlike the Haiven web interface, prompts execute through your AI tool's configured LLM (not your enterprise's controlled deployment). Ensure your AI tool usage complies with organizational policies.
License
Licensed under the same terms as the main Haiven project.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。