⚠️ UNOFFICIAL: This is an unofficial, community-built MCP server. It is not affiliated with, endorsed by, or supported by Sequence.
An MCP (Model Context Protocol) server that provides access to the Sequence banking API. This allows AI assistants like Claude to interact with your Sequence accounts programmatically.
- Get Accounts: Fetch all financial accounts (Pods, Income Sources, external accounts) with current balances
- Trigger Rules: Invoke automation rules configured in Sequence from external systems
- Python 3.10 or higher
- A Sequence account with the External API enabled
- Access token and/or rule API secrets from your Sequence dashboard
-
Clone or download this repository
-
Create and activate a virtual environment:
python3 -m venv venv source venv/bin/activate -
Install the package:
pip install -e . -
For development (includes test dependencies):
pip install -e ".[dev]"
-
Enable the External API: Go to Settings > Enable Remote API in your Sequence dashboard
-
Generate an Access Token: Navigate to Account Settings > Access Tokens and create a new token. This is used for fetching account data.
-
Get Rule API Secrets: When you create a Rule with "Remote API" trigger type, an API secret is generated. Use this secret to trigger that specific rule.
Set your access token as an environment variable:
export SEQUENCE_ACCESS_TOKEN="your_access_token_here"source venv/bin/activate
python -m sequence_mcp.serverAdd the following to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"sequence": {
"command": "/path/to/sequence-mcp/venv/bin/python",
"args": ["-m", "sequence_mcp.server"],
"env": {
"SEQUENCE_ACCESS_TOKEN": "your_access_token_here"
}
}
}
}Replace /path/to/sequence-mcp with the actual path to this project.
Fetches all financial accounts with their current balances.
Requirements: SEQUENCE_ACCESS_TOKEN environment variable must be set.
Returns: List of accounts with id, name, type, and balance information.
Triggers an automation rule in Sequence.
Parameters:
rule_id(required): The ID of the rule to trigger (e.g., "ru_12345")api_secret(required): The API secret associated with this rulepayload(optional): JSON object to send with the triggeridempotency_key(optional): Unique key to prevent duplicate triggers on retry
# Create and activate virtual environment
python3 -m venv venv
source venv/bin/activate
# Install development dependencies (includes testing tools)
pip install -e ".[dev]"# Run all tests
pytest -v
# Run with coverage report
pytest --cov=sequence_mcp
# Run specific test file
pytest tests/test_client.py -v
# Run specific test function
pytest tests/test_client.py::describe_SequenceClient::describe_get_accounts -vTests use pytest-describe for BDD-style organization and respx for HTTP mocking.
sequence-mcp/
├── sequence_mcp/
│ ├── __init__.py # Package exports
│ ├── models.py # Pydantic models for API responses
│ ├── client.py # Async HTTP client for Sequence API
│ └── server.py # MCP server implementation
├── tests/
│ ├── conftest.py # Shared test fixtures
│ ├── test_models.py # Model tests
│ ├── test_client.py # Client tests
│ └── test_server.py # Server tests
├── pyproject.toml # Project configuration
└── README.md
This MCP server wraps the Sequence External API. For full API documentation, see: https://support.getsequence.io/hc/en-us/articles/42813911824019-API-Overview
| Code | Description |
|---|---|
INVALID_ACCESS_TOKEN |
Access token is missing or invalid |
INVALID_API_SECRET |
Rule API secret is incorrect |
INVALID_REQUEST |
Rule ID not found or not configured for API triggers |
TOO_MANY_REQUESTS |
Rate limit exceeded, slow down requests |
UNEXPECTED_ERROR |
Server error, usually transient |
- Keep your access tokens and API secrets secure
- Never expose credentials in client-side code
- Use environment variables or secure secret management
- Rotate tokens periodically
- All requests are made over HTTPS
MIT