QA Assistant MCP
An MCP server that enables Claude to read Jira user stories, search Confluence documentation, and generate QA artifacts like test scenarios, test cases, traceability matrices, coverage analysis, and executive summaries using GPT-4o.
README
QA Assistant MCP
A production-ready MCP (Model Context Protocol) server that gives Claude Desktop and Claude Code the ability to read Jira user stories, search Confluence documentation, and generate professional QA artifacts powered by GPT-4o.
Features
| Tool | Description |
|---|---|
get_user_story |
Fetch a Jira issue with summary, description, acceptance criteria, labels, priority |
search_confluence |
Full-text search across Confluence pages |
get_requirement_context |
Merge Jira story + relevant Confluence pages into one context |
generate_test_scenarios |
AI-generated scenario table (ID, Scenario, Priority, Risk) |
generate_test_cases |
Comprehensive test cases — Positive, Negative, Boundary, Validation, Permission |
generate_rtm |
Requirements Traceability Matrix mapping ACs to test cases |
analyze_test_coverage |
Coverage %, missing areas, risk areas, recommendations |
generate_test_summary |
Executive report with coverage, risks, and release readiness |
Prerequisites
- Python 3.12+
- Jira Cloud account with API token
- Confluence Cloud account with API token
- OpenAI API key (GPT-4o access recommended)
- Claude Desktop or Claude Code
Installation
1. Clone the repository
git clone <your-repo-url>
cd qa-mcp
2. Create a virtual environment
python -m venv .venv
# Windows
.venv\Scripts\activate
# macOS / Linux
source .venv/bin/activate
3. Install dependencies
pip install -r requirements.txt
4. Configure environment variables
cp .env.example .env
Edit .env with your credentials:
JIRA_URL=https://your-domain.atlassian.net
JIRA_EMAIL=your-email@example.com
JIRA_API_TOKEN=your-jira-api-token
CONFLUENCE_URL=https://your-domain.atlassian.net
CONFLUENCE_EMAIL=your-email@example.com
CONFLUENCE_API_TOKEN=your-confluence-api-token
OPENAI_API_KEY=sk-your-openai-api-key
How to get API tokens:
- Jira/Confluence: https://id.atlassian.com/manage-profile/security/api-tokens
- OpenAI: https://platform.openai.com/api-keys
Running the Server
Standalone test (stdio mode)
python server.py
Development with MCP Inspector
mcp dev server.py
Claude Desktop Configuration
Add to your Claude Desktop config file:
Windows: %APPDATA%\Claude\claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"qa-assistant": {
"command": "python",
"args": ["C:\\full\\path\\to\\qa-mcp\\server.py"],
"env": {
"JIRA_URL": "https://your-domain.atlassian.net",
"JIRA_EMAIL": "your-email@example.com",
"JIRA_API_TOKEN": "your-jira-api-token",
"CONFLUENCE_URL": "https://your-domain.atlassian.net",
"CONFLUENCE_EMAIL": "your-email@example.com",
"CONFLUENCE_API_TOKEN": "your-confluence-api-token",
"OPENAI_API_KEY": "sk-your-openai-api-key"
}
}
}
}
Tip: Use the full absolute path to
server.py. On Windows use double backslashes or forward slashes.
After saving, restart Claude Desktop.
Claude Code Configuration
Add to your project's .mcp.json:
{
"mcpServers": {
"qa-assistant": {
"command": "python",
"args": ["server.py"],
"cwd": "C:\\full\\path\\to\\qa-mcp"
}
}
}
Or run directly:
claude mcp add qa-assistant python server.py
Usage Examples
Once connected to Claude, use natural language:
Get the user story for US-123
Search Confluence for "payment gateway BRD"
Get the full requirement context for PROJ-456
Generate test scenarios for US-123
Generate test cases for US-123
Generate RTM for US-123
Analyze test coverage for US-123
Create a test summary report for US-123
Project Structure
qa-mcp/
├── server.py # MCP server entry point
├── tools/
│ ├── __init__.py
│ ├── jira_tools.py # get_user_story, get_requirement_context
│ ├── confluence_tools.py # search_confluence
│ ├── testcase_tools.py # generate_test_scenarios, generate_test_cases,
│ │ # generate_rtm, analyze_test_coverage
│ └── report_tools.py # generate_test_summary
├── services/
│ ├── __init__.py
│ ├── jira_service.py # Jira API wrapper (atlassian-python-api)
│ ├── confluence_service.py # Confluence API wrapper
│ └── ai_service.py # OpenAI GPT-4o integration
├── models/
│ ├── __init__.py
│ ├── story.py # UserStory Pydantic model
│ └── testcase.py # TestCase, Scenario, RTM, Coverage models
├── .env # Your credentials (not committed)
├── .env.example # Template
├── requirements.txt
└── README.md
Troubleshooting
| Problem | Solution |
|---|---|
EnvironmentError: Missing Jira credentials |
Check that .env is in the qa-mcp/ directory and all three Jira vars are set |
AuthError from Jira/Confluence |
Verify email + API token; the token is NOT your password |
openai.AuthenticationError |
Check OPENAI_API_KEY starts with sk- |
| Tool not appearing in Claude | Restart Claude Desktop after editing claude_desktop_config.json |
ModuleNotFoundError |
Ensure virtual environment is activated when running server.py |
Notes
- All AI generation uses GPT-4o by default. Override with
OPENAI_MODEL=gpt-4o-minifor lower cost. - Jira and Confluence use the same Atlassian API token — same credentials work for both.
- The server reads
.envfrom its own directory regardless of where you invoke it.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。