Personal Context

效率与工作流

by Polaralias

管理每日状态、工作可用性与位置历史,提供相关情境信息;可集成 Home Assistant 和节假日日历,集中记录当前环境与后续安排。

什么是 Personal Context

管理每日状态、工作可用性与位置历史,提供相关情境信息;可集成 Home Assistant 和节假日日历,集中记录当前环境与后续安排。

核心功能 (11 个工具)

status_get
status_set_override
status_get_work
status_set_work
status_get_location
status_set_location
status_get_location_history
status_schedule_set
status_schedule_list
status_schedule_delete
holidays_list

README

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, or MCP_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

  1. Copy .env.example to .env
  2. Fill in the required value:
    • PERSONAL_CONTEXT_MCP_API_KEY
  3. Add any integrations you use:
    • HA_URL, HA_TOKEN, HA_ENTITY_ID
    • GOOGLE_API_KEY or PERSONAL_GOOGLE_API_KEY

Common optional settings:

  • GOOGLE_POLL_CRON
  • PERSONAL_CONTEXT_MCP_PORT
  • PERSONAL_CONTEXT_MCP_HOST_PORT
  • PERSONAL_CONTEXT_MCP_PATH
  • DATABASE_URL
  • LOCATION_STALE_HOURS
  • DATA_RETENTION_DAYS
  • DATA_CLEANUP_INTERVAL_SECONDS
  • API_KEY_MODE
  • PERSONAL_API_KEY_MODE

Docker Compose note:

  • If a secret contains a literal $, escape it as $$ in .env

Run Locally

bash
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

bash
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:

yaml
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

Universal
热门

围绕 .xlsx、.xlsm、.csv、.tsv 做读写、修复、清洗、格式整理、公式计算与格式转换,适合修改现有表格、生成新报表或把杂乱数据整理成交付级电子表格。

做 Excel/CSV 相关任务很省心,能直接读写、修复、清洗和格式转换,尤其擅长把乱七八糟的表格整理成交付级文件。

效率与工作流
未扫描109.6k

PDF处理

by anthropics

Universal
热门

遇到 PDF 读写、文本表格提取、合并拆分、旋转加水印、表单填写或加解密时直接用它,也能提取图片、生成新 PDF,并把扫描件通过 OCR 变成可搜索文档。

PDF杂活别再来回切工具了,文本表格提取、合并拆分到OCR识别一次搞定,连扫描件也能变可搜索。

效率与工作流
未扫描109.6k

Word文档

by anthropics

Universal
热门

覆盖Word/.docx文档的创建、读取、编辑与重排,适合生成报告、备忘录、信函和模板,也能处理目录、页眉页脚、页码、图片替换、查找替换、修订批注及内容提取整理。

搞定 .docx 的创建、改写与精排版,目录、批量替换、批注修订和图片更新都能自动化,做正式文档尤其省心。

效率与工作流
未扫描109.6k

相关 MCP Server

文件系统

编辑精选

by Anthropic

热门

Filesystem 是 MCP 官方参考服务器,让 LLM 安全读写本地文件系统。

这个服务器解决了让 Claude 直接操作本地文件的痛点,比如自动整理文档或生成代码文件。适合需要自动化文件处理的开发者,但注意它只是参考实现,生产环境需自行加固安全。

效率与工作流
82.9k

by wonderwhy-er

热门

Desktop Commander 是让 AI 直接执行终端命令、管理文件和进程的 MCP 服务器。

这工具解决了 AI 无法直接操作本地环境的痛点,适合需要自动化脚本调试或文件批量处理的开发者。它能让你用自然语言指挥终端,但权限控制需谨慎,毕竟让 AI 执行 rm -rf 可不是闹着玩的。

效率与工作流
5.8k

EdgarTools

编辑精选

by dgunning

热门

EdgarTools 是无需 API 密钥即可解析 SEC EDGAR 财报的开源 Python 库。

这个工具解决了金融数据获取的痛点——直接让 AI 读取结构化财报,比如让 Claude 分析苹果的 10-K 文件。适合量化分析师或金融开发者快速构建数据管道。但注意,它依赖 SEC 网站稳定性,高峰期可能延迟。

效率与工作流
1.9k

评论