bredmond1019/helpscout-mcp-server
If you are the rightful owner of helpscout-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The HelpScout MCP Server is a Model Context Protocol server that integrates AI assistants with HelpScout's Mailbox API to streamline customer support workflows.
list_conversations
Retrieve and filter conversations from HelpScout.
get_conversation
Access detailed conversation information including threads.
HelpScout MCP Server
A Model Context Protocol (MCP) server that provides AI assistants with access to HelpScout's Mailbox API for customer support workflows.
Features
- List Conversations: Retrieve and filter conversations from HelpScout
- Get Conversation Details: Access detailed conversation information including threads
- OAuth2 Authentication: Secure API access using Bearer tokens
- MCP Protocol: Standard interface for AI tool integration
Installation
# Clone and navigate to directory
cd helpscout-mcp-server
# Install dependencies
uv sync --extra dev
# Run tests
uv run pytest
# Run with coverage
uv run pytest --cov=src/helpscout_mcp --cov-report=term-missing
Configuration
Set the required environment variable:
export HELPSCOUT_API_TOKEN="your-helpscout-oauth-token"
Optional configuration:
export HELPSCOUT_API_URL="https://api.helpscout.net" # Default value
Usage
The server exposes two MCP tools:
list_conversations
# List all conversations
await list_conversations()
# Filter by mailbox and status
await list_conversations(mailbox="123", status="active", limit=10)
get_conversation
# Get conversation details
await get_conversation("conversation-id")
# Include conversation threads
await get_conversation("conversation-id", embed_threads=True)
Development
This project follows Test-Driven Development (TDD) principles:
- Red: Write failing tests first
- Green: Implement minimal code to pass tests
- Refactor: Improve code quality while maintaining green tests
Project Structure
src/helpscout_mcp/
āāā __init__.py
āāā server.py # MCP server with @mcp.tool() decorators
āāā client.py # HelpScout API client with HTTPX
āāā config.py # Configuration management with Pydantic
tests/unit/
āāā test_config.py # Configuration tests
āāā test_client.py # HTTP client tests
āāā test_server.py # MCP server tests
āāā test_project_structure.py # Package structure tests
Running Tests
# All tests
uv run pytest
# Specific test file
uv run pytest tests/unit/test_client.py -v
# With coverage
uv run pytest --cov=src/helpscout_mcp --cov-report=html
License
MIT License