althea-mcp
Connects your personal Althea AI assistant to MCP-compatible tools like Codex and Claude, allowing you to send messages and retrieve conversation history.
README
<p align="center"> <a href="https://www.python.org/"><img src="https://img.shields.io/badge/Python-3.11%2B-3776AB?logo=python&logoColor=white" alt="Python 3.11+" /></a> <a href="https://modelcontextprotocol.io/"><img src="https://img.shields.io/badge/MCP-server-7C3AED" alt="MCP server" /></a> <a href="https://github.com/tiptreesystems/althea-mcp/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-green.svg" alt="MIT license" /></a> </p>
Althea MCP
Bring your personal Althea into Codex, Claude, and other MCP-compatible tools.
Althea MCP talks to the main Althea application. It uses your existing account and canonical Althea—with the same dossier and long-term memory you use through the web, email, SMS, and other channels. It creates a dedicated MCP conversation thread, just as each other channel has its own thread.
It does not use the retired Platform API, create an account in a parallel auth database, or spin up a separate blank agent.
Setup
Run one command:
uvx --from git+https://github.com/tiptreesystems/althea-mcp.git althea-mcp setup
The command asks for your email and lets the Althea frontend determine the correct journey:
- Existing account: Althea emails a verification code.
- Eligible new account: the CLI asks for your name, creates the account, and emails a verification code.
- Access still required: the CLI opens the existing Althea access-request page. Complete that journey, then rerun the same setup command.
After verification, setup creates a dedicated, 90-day MCP API key and stores it at
~/.config/althea-mcp/credentials.json with user-only file permissions where
the operating system supports them. The key is scoped to the Althea MCP
frontend channel; it is not a general-purpose Althea or ACTX credential. Setup
also schedules the same idempotent dossier setup used after web sign-in. It
does not persist the interactive login token or print the API key. Optional
onboarding details can still be completed in the Althea web app.
Once the package is on PyPI, the setup command becomes:
uvx althea-mcp setup
Connect an MCP client
Run setup once before adding the server.
Codex
codex mcp add althea -- uvx --from git+https://github.com/tiptreesystems/althea-mcp.git althea-mcp
Or add this to ~/.codex/config.toml:
[mcp_servers.althea]
command = "uvx"
args = ["--from", "git+https://github.com/tiptreesystems/althea-mcp.git", "althea-mcp"]
[mcp_servers.althea.env]
ALTHEA_THREAD_KEY = "codex"
Claude Code
claude mcp add --scope user althea -- uvx --from git+https://github.com/tiptreesystems/althea-mcp.git althea-mcp
Or add this under the top-level mcpServers object in ~/.claude.json:
{
"mcpServers": {
"althea": {
"type": "stdio",
"command": "uvx",
"args": [
"--from",
"git+https://github.com/tiptreesystems/althea-mcp.git",
"althea-mcp"
],
"env": {
"ALTHEA_THREAD_KEY": "claude-code"
}
}
}
}
Claude Desktop and other local MCP clients
Use the same stdio command:
{
"mcpServers": {
"althea": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/tiptreesystems/althea-mcp.git",
"althea-mcp"
]
}
}
}
Use a distinct ALTHEA_THREAD_KEY for each MCP client if you run several
clients concurrently.
Tools
ask_althea(message)Sends a real message to your Althea and waits for her response.send_message_to_althea(message)Sends a message without waiting, for asynchronous requests or context.get_althea_messages(sender=None, limit=10)Retrieves recent messages from the configured MCP thread.
Configuration
ALTHEA_API_KEYOverrides the API key in the credentials file.ALTHEA_APP_URLDefaults tohttps://althea.tiptreesystems.com.ALTHEA_THREAD_KEYStable conversation-thread identifier. Defaults tomcp.ALTHEA_MCP_CREDENTIALS_FILEOverrides~/.config/althea-mcp/credentials.json.ALTHEA_MCP_HTTP_TIMEOUTHTTP timeout in seconds. Defaults to60.ALTHEA_MCP_POLL_INTERVALResponse polling interval in seconds. Defaults to2.ALTHEA_MCP_POLL_TIMEOUTMaximum timeask_altheawaits for a response. Defaults to120.ALTHEA_MCP_LOG_LEVELDefaults toWARNING.
Environment variables are useful for automation, but the normal user journey
is simply althea-mcp setup; no API key needs to be pasted into an MCP config.
Architecture
This repository is intentionally independent of the private
tiptree-clients package. It is a thin public adapter over frontend-owned
routes:
| Capability | Frontend route |
|---|---|
| Unified sign-in/sign-up detection | POST /otp/signin |
| CLI OTP verification | POST /mcp/auth/otp/signin/verify |
| Idempotent profile/dossier setup | POST /create_dossier |
| Create and manage MCP-scoped keys | /mcp/api-keys |
| Send to the user's Althea | POST /mcp/threads/{thread_key}/messages |
| Read the MCP conversation | GET /mcp/threads/{thread_key}/messages |
The stored key goes only to the frontend MCP routes. The frontend authenticates
it through a service-only auth-server exchange and receives a two-hour
delegated user token. That delegated token—not the MCP key—is sent to ACTX.
The duration covers queued wakes and code-assistant work. The frontend uses
the token to resolve the main user, provision or find that user's canonical
Althea, and own the MCP ChannelSession.
Creating, listing, or revoking MCP keys requires an interactive login token; an MCP key cannot mint or manage keys. Revoking the key deactivates the usage session behind both the key and any delegated token. The MCP package does not know about ACTX internals.
Local development
git clone https://github.com/tiptreesystems/althea-mcp.git
cd althea-mcp
uv sync --extra dev
uv run pytest
uv run ruff check .
uv run althea-mcp setup --app-url http://localhost:8080
Running althea-mcp with no subcommand starts the stdio MCP server. The
equivalent explicit command is althea-mcp serve.
Distribution
Althea MCP is a local stdio server. It can be published to PyPI and submitted to the official MCP Registry. Anthropic's connectors directory is for remote MCP servers, so this local package is not a fit for that directory unless a hosted transport is added later.
License
MIT. See the license.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。