Personal Context
效率与工作流by Polaralias
管理每日状态、工作可用性与位置历史,提供相关情境信息;可集成 Home Assistant 和节假日日历,集中记录当前环境与后续安排。
什么是 Personal Context?
管理每日状态、工作可用性与位置历史,提供相关情境信息;可集成 Home Assistant 和节假日日历,集中记录当前环境与后续安排。
核心功能 (11 个工具)
status_getstatus_set_overridestatus_get_workstatus_set_workstatus_get_locationstatus_set_locationstatus_get_location_historystatus_schedule_setstatus_schedule_liststatus_schedule_deleteholidays_listREADME
personal-context-mcp
Standalone Python/FastMCP server for Personal Context with direct HTTP transport, static API-key auth, and persistent local state.
Highlights
- Default MCP endpoint:
http://localhost:3003/mcp - Default health endpoint:
http://localhost:3003/health - Supports
PERSONAL_CONTEXT_MCP_API_KEY,MCP_API_KEY, orMCP_API_KEYS - Persists the SQLite database under
./state/data - Preserves Home Assistant polling and Google Maps enrichment configuration
Reference Docs
- Tool reference contains the full public tool inventory and parameter details (14 tools).
- Configuration reference explains the supported env vars, storage, integrations, auth modes, and deployment notes.
Configuration
- Copy
.env.exampleto.env - Fill in the required value:
PERSONAL_CONTEXT_MCP_API_KEY
- Add any integrations you use:
HA_URL,HA_TOKEN,HA_ENTITY_IDGOOGLE_API_KEYorPERSONAL_GOOGLE_API_KEY
Common optional settings:
GOOGLE_POLL_CRONPERSONAL_CONTEXT_MCP_PORTPERSONAL_CONTEXT_MCP_HOST_PORTPERSONAL_CONTEXT_MCP_PATHDATABASE_URLLOCATION_STALE_HOURSDATA_RETENTION_DAYSDATA_CLEANUP_INTERVAL_SECONDSAPI_KEY_MODEPERSONAL_API_KEY_MODE
Docker Compose note:
- If a secret contains a literal
$, escape it as$$in.env
Run Locally
python scripts/run_server.py serve
python scripts/run_server.py doctor
python scripts/run_server.py url
The local helper serves streamable HTTP on MCP_HOST / MCP_PORT / MCP_PATH.
Run With Docker Compose
docker compose up -d --build
docker compose ps
docker compose logs -f
The included docker-compose.yml publishes the server on port 3003, joins the external reverse_proxy network, and persists the runtime database under ./state/data.
Add To A Shared MCP Compose Project
Use this service in a larger compose stack when you want one project containing multiple MCP servers:
services:
personal-context-mcp:
build:
context: /path/to/personal-context-mcp
dockerfile: Dockerfile
restart: unless-stopped
env_file:
- /path/to/personal-context-mcp/.env
environment:
MCP_HOST: 0.0.0.0
MCP_PORT: "3003"
MCP_PATH: /mcp
volumes:
- /path/to/personal-context-mcp/state/data:/app/data
ports:
- "3003:3003"
networks:
- reverse_proxy
networks:
reverse_proxy:
external: true
If you do not need host port publishing because you are fronting the service with another internal proxy, you can omit the ports section.
MCP Client Connection
- URL:
http://<host>:<port>/mcp - Header:
Authorization: Bearer <your-api-key>
Repository Notes
- Health responses identify the server as
personal-context-mcp - The server keeps the existing location, schedule, retention, and integration behaviors intact
常见问题
Personal Context 是什么?
管理每日状态、工作可用性与位置历史,提供相关情境信息;可集成 Home Assistant 和节假日日历,集中记录当前环境与后续安排。
Personal Context 提供哪些工具?
提供 11 个工具,包括 status_get、status_set_override、status_get_work 等。
相关 Skills
表格处理
by anthropics
围绕 .xlsx、.xlsm、.csv、.tsv 做读写、修复、清洗、格式整理、公式计算与格式转换,适合修改现有表格、生成新报表或把杂乱数据整理成交付级电子表格。
✎ 做 Excel/CSV 相关任务很省心,能直接读写、修复、清洗和格式转换,尤其擅长把乱七八糟的表格整理成交付级文件。
PDF处理
by anthropics
遇到 PDF 读写、文本表格提取、合并拆分、旋转加水印、表单填写或加解密时直接用它,也能提取图片、生成新 PDF,并把扫描件通过 OCR 变成可搜索文档。
✎ PDF杂活别再来回切工具了,文本表格提取、合并拆分到OCR识别一次搞定,连扫描件也能变可搜索。
Word文档
by anthropics
覆盖Word/.docx文档的创建、读取、编辑与重排,适合生成报告、备忘录、信函和模板,也能处理目录、页眉页脚、页码、图片替换、查找替换、修订批注及内容提取整理。
✎ 搞定 .docx 的创建、改写与精排版,目录、批量替换、批注修订和图片更新都能自动化,做正式文档尤其省心。
相关 MCP Server
文件系统
编辑精选by Anthropic
Filesystem 是 MCP 官方参考服务器,让 LLM 安全读写本地文件系统。
✎ 这个服务器解决了让 Claude 直接操作本地文件的痛点,比如自动整理文档或生成代码文件。适合需要自动化文件处理的开发者,但注意它只是参考实现,生产环境需自行加固安全。
by wonderwhy-er
Desktop Commander 是让 AI 直接执行终端命令、管理文件和进程的 MCP 服务器。
✎ 这工具解决了 AI 无法直接操作本地环境的痛点,适合需要自动化脚本调试或文件批量处理的开发者。它能让你用自然语言指挥终端,但权限控制需谨慎,毕竟让 AI 执行 rm -rf 可不是闹着玩的。
EdgarTools
编辑精选by dgunning
EdgarTools 是无需 API 密钥即可解析 SEC EDGAR 财报的开源 Python 库。
✎ 这个工具解决了金融数据获取的痛点——直接让 AI 读取结构化财报,比如让 Claude 分析苹果的 10-K 文件。适合量化分析师或金融开发者快速构建数据管道。但注意,它依赖 SEC 网站稳定性,高峰期可能延迟。