Skip to main content
Glama
Personal OS MCP

Personal OS MCP

by likalg

Personal OS MCP

Independent Model Context Protocol server for the Personal OS AI API. It exposes the same practical, typed MCP tools over local stdio or remote Streamable HTTP and performs every real operation through the existing HTTP API.

MCP client → personal-os-mcp → Personal OS /api/v1/ai/* → Personal OS database

The server never connects to MySQL, imports Laravel internals, accepts a User ID, or reproduces Personal OS ownership and lifecycle logic. Personal OS remains authoritative.

Technology

  • Node.js 20 or newer

  • Node.js 22.7.5 or newer when running the current MCP Inspector

  • TypeScript with strict checking

  • Official @modelcontextprotocol/sdk 1.30

  • Zod schemas

  • Native Node fetch

  • Vitest, ESLint, and Prettier

  • Local stdio and remote stateless Streamable HTTP transports

Related MCP server: todoist-mcp

Setup

Personal OS must be available locally, normally at http://localhost:8080.

cd /home/lika/projects/personal-os-mcp
npm install
cp .env.example .env

Create a dedicated User-bound AI token from the Personal OS project:

cd /home/lika/projects/personal-os
docker compose exec app php artisan ai:token user@example.com --name=chatgpt

Use the actual account email interactively. The token is displayed once. Store it only in the local ignored .env file or a secret manager:

MCP_TRANSPORT=stdio
PORT=8080
PERSONAL_OS_BASE_URL=http://localhost:8080
PERSONAL_OS_AI_TOKEN=replace_with_the_once_displayed_token
PERSONAL_OS_MCP_TIMEOUT_SECONDS=15

Never commit, log, paste into documentation, or place a real token in .env.example.

Commands

npm run dev
npm run typecheck
npm run build
npm start
npm run start:stdio
npm test
npm run lint
npm run format:check

Development mode runs TypeScript directly and respects MCP_TRANSPORT from the environment (stdio by default). npm run build writes ESM output to dist. Once built, npm start always runs the HTTP transport (this is what Railway/Docker run) and npm run start:stdio always runs the stdio transport (this is what Claude Desktop runs locally), regardless of any MCP_TRANSPORT already in the environment — each script sets it explicitly.

Local stdio

stdio is the default transport for npm run dev and remains suitable for local clients and MCP Inspector. Against a built server:

npm run start:stdio

Inspect the built server with the official MCP Inspector:

npm run build
MCP_TRANSPORT=stdio npx @modelcontextprotocol/inspector node dist/index.js

Protocol messages use stdout in this mode. Configuration failures use stderr without printing the token or environment.

Remote Streamable HTTP

HTTP mode binds to 0.0.0.0, listens on PORT (falling back to 8080 if unset), and exposes:

  • POST /mcp — stateless MCP Streamable HTTP;

  • GET /health — process health (JSON body);

  • GET /healthz — plain-text OK probe for the Railway healthcheck. Never calls the Personal OS API, requires no auth, and touches no database or MCP client state;

  • OPTIONS /mcp, OPTIONS /health, OPTIONS /healthz — CORS preflight.

Start it locally:

PORT=8080 npm start

The public MCP URL is https://YOUR_PUBLIC_HOST/mcp.

Remote HTTP uses OAuth 2.1 authorization-code flow with PKCE. The MCP endpoint publishes Protected Resource Metadata, discovers Personal OS as its authorization server, and returns a standards-based WWW-Authenticate challenge. Each user is redirected to Personal OS login and a consent screen. Personal OS issues a resource-bound, one-hour access token and a rotating 30-day refresh token.

Every POST /mcp is validated through /api/v1/ai/mcp-health before a request-scoped MCP server is created. The service never falls back to a Railway-wide user token, accepts a User ID, exposes credentials, or logs them. Different authorized users therefore remain isolated.

PERSONAL_OS_AI_TOKEN is only for local stdio clients.

Railway

The repository includes a multi-stage Dockerfile and minimal railway.json. Configure:

MCP_TRANSPORT=http
PERSONAL_OS_BASE_URL=https://<your-personal-os-railway-domain>
PERSONAL_OS_MCP_TIMEOUT_SECONDS=15

MCP_PUBLIC_URL=https:///mcp PERSONAL_OS_OAUTH_ISSUER_URL=https:// PERSONAL_OS_BASE_URL should point at the deployed Personal OS web service's public URL once that app is also on Railway (see personal-os/docs/deployment/railway.md in that repo). For local-only experimentation against a Personal OS instance that isn't deployed yet, an ngrok tunnel to your local Personal OS works the same way — any reachable HTTPS origin is accepted.

Also set MCP_AUTH_ISSUER_URL and MCP_RESOURCE_URL on the Personal OS service to those same two public URLs. No user token belongs in the MCP Railway environment; OAuth creates and rotates user-scoped credentials after consent.

Railway supplies PORT; do not hardcode it. The container's Dockerfile CMD runs node dist/index.js directly and Railway checks /healthz. OAuth state is stored in the Personal OS database, so the MCP service remains stateless.

Verify locally with curl http://127.0.0.1:8080/healthz. For MCP Inspector, run npx @modelcontextprotocol/inspector, select Streamable HTTP, and use http://127.0.0.1:8080/mcp.

Tools

System

  • personal_os_health

  • personal_os_capabilities

Tasks and Planning

  • personal_os_list_tasks

  • personal_os_get_task

  • personal_os_create_task

  • personal_os_update_task

  • personal_os_bulk_update_tasks

  • personal_os_complete_task

  • personal_os_reopen_task

  • personal_os_archive_task

  • personal_os_unarchive_task

  • personal_os_move_task_to_trash

  • personal_os_restore_task

  • personal_os_update_task_planning

  • personal_os_create_task_step

  • personal_os_update_task_step

  • personal_os_delete_task_step

  • personal_os_list_planning_tasks

  • personal_os_get_task_planning

Task create and update tools accept the optional estimated_minutes field: a nullable integer from 1 to 10080 representing the Task's total estimated duration in minutes (never hours/minutes pairs, decimal hours, or time-of-day strings). Send null to clear an existing estimate. personal_os_list_tasks supports three numeric duration filters: estimated_minutes (exact match), min_estimated_minutes (inclusive minimum), and max_estimated_minutes (inclusive maximum) — map natural-language duration requests to these, e.g. "5-minute tasks" -> estimated_minutes: 5, "under 30 minutes" -> max_estimated_minutes: 30, "one to two hours" -> min_estimated_minutes: 60, max_estimated_minutes: 120.

Task tools also mirror the current Personal OS work_state, Feels Heavy support fields, Steps finalization, priority filtering, and newest/priority ordering. Step create/update/delete tools call the matching Personal OS AI API endpoints directly; completing a Step never completes its parent Task.

Effort remains part of the Personal OS API response/data contract, but its MCP create/update input option is temporarily hidden so the feature can be re-enabled later without a data migration.

Paginated Task and unified-item list tools accept page and per_page (maximum 100). Normal requests return one page and add a concise pagination status indicating whether another page exists. Set fetch_all: true only when the user explicitly asks for every matching item. The MCP adapter then follows Laravel pagination metadata while preserving the original filters and ordering, stops after at most 10 pages, and reports truncated: true plus next_page when more results remain. The MCP-only fetch_all flag is never forwarded to Personal OS.

Reminders

  • personal_os_list_task_reminders

  • personal_os_create_task_reminder

  • personal_os_update_reminder

  • personal_os_cancel_reminder

Reminder create/update values use YYYY-MM-DD HH:mm or YYYY-MM-DD HH:mm:ss in the Personal OS User timezone. Personal OS remains authoritative for future-time validation, daylight-saving transitions, ownership, Task eligibility, and lifecycle rules. Multiple reminders per Task are supported. Updating is limited to pending reminders; cancelling keeps history and is idempotent.

Tags

  • personal_os_list_tags

  • personal_os_get_tag

  • personal_os_create_tag

  • personal_os_update_tag

  • personal_os_archive_tag

  • personal_os_restore_tag

  • personal_os_delete_tag

Tag create and update tools accept the optional description field (maximum 1,000 characters) and forward it unchanged to the Personal OS AI API.

Containers / Lists

  • personal_os_list_containers

  • personal_os_get_container

  • personal_os_create_container

  • personal_os_update_container

  • personal_os_archive_container

  • personal_os_restore_container

  • personal_os_delete_container

Projects

  • personal_os_list_projects

  • personal_os_get_project

  • personal_os_create_project

  • personal_os_update_project

  • personal_os_archive_project

  • personal_os_restore_project

  • personal_os_delete_project

Collections

  • personal_os_list_collections

  • personal_os_get_collection

  • personal_os_create_collection

  • personal_os_update_collection

  • personal_os_archive_collection

  • personal_os_restore_collection

  • personal_os_delete_collection

A Collection is a root-level Task Container. There is no collection-item model or item mutation tool.

Notes

  • personal_os_list_notes

  • personal_os_get_note

  • personal_os_create_note

  • personal_os_update_note

  • personal_os_complete_note

  • personal_os_uncomplete_note

  • personal_os_archive_note

  • personal_os_restore_note

  • personal_os_delete_note

Unified Items

  • personal_os_list_inbox_items

  • personal_os_list_archive_items

  • personal_os_list_planning_items

Reviews

  • personal_os_list_reviews

  • personal_os_list_review_types

  • personal_os_get_review

  • personal_os_start_review

  • personal_os_update_review_section

  • personal_os_apply_review_action

  • personal_os_skip_review_item

  • personal_os_complete_review

  • personal_os_abandon_review

  • personal_os_get_review_summary

Safety metadata

MCP annotations use only SDK-supported fields: readOnlyHint, destructiveHint, idempotentHint, and openWorldHint.

Confirmation is recommended for:

  • every permanent delete tool;

  • bulk Task update;

  • moving a Task to Trash;

  • archive actions;

  • abandoning a Review;

  • Review item actions because an action may mutate or delete its source.

Lifecycle meanings:

  • Trash: recoverable Task soft delete; personal_os_restore_task can recover it.

  • Archive: reversible removal from active views; the matching restore/unarchive action reactivates it.

  • Reminder cancellation: preserves reminder history and can safely be repeated, but a cancelled reminder is not restored.

  • Final delete: permanent and irreversible; applies to Containers, Projects, Collections, Tags, and Notes.

The MCP protocol annotations inform compatible hosts, but the server does not create a custom Accept/Reject UI.

HTTP and errors

The centralized client sends Accept: application/json, JSON bodies where applicable, and a redacted Bearer token header. It safely joins base paths, omits null/empty query values, applies a configurable timeout, validates JSON response shape, and returns structured tool errors:

  • authentication for 401

  • authorization for 403

  • not_found for 404 or foreign-owned IDs

  • validation with field errors for 422

  • rate_limited for 429

  • upstream for 5xx

  • network, timeout, invalid_json, or contract for transport/response failures

Only transient connection/timeout failures on GET requests are retried, at most twice after the initial attempt. Mutations are never retried automatically.

Unhandled errors inside an HTTP /mcp request handler (transport/protocol failures, not upstream API errors — those are already structured above) are logged to stderr with sensitive values redacted, in addition to the generic JSON-RPC 500 sent to the client. Railway captures container stderr as service logs, so these are visible without extra configuration.

Security boundary

  • One local token represents exactly one Personal OS User.

  • The token must have the ai:access ability and ai-api: name prefix.

  • Normal application tokens cannot call the AI namespace.

  • AI tokens cannot call normal User/admin endpoints.

  • Authorization values are never included in tool errors.

  • .env and .env.* are ignored except .env.example.

Known limitations

  • No Recurrence or Checklist mutation tools.

  • No ChatGPT widget, custom frontend, or Accept/Reject UI.

  • Tool schemas are maintained as a typed projection of Laravel routes, Form Requests, enums, Resources, and capabilities because Personal OS currently publishes no OpenAPI document.

Future stages may add the explicitly deferred domains and richer ChatGPT UI integration.

Available Tools

66 tools
personal_os_abandon_reviewAbandon ReviewA
Destructive

CONFIRMATION REQUIRED. Abandon an in-progress review session; history is retained.

Inputs: session_id (required).

personal_os_apply_review_actionApply Review actionB
Destructive

Apply one existing ReviewAction to one snapshot item. Source lifecycle and ownership remain API-controlled.

Inputs: action (required), item_id (required), session_id (required), date, +3 more.

personal_os_archive_collectionarchive collectionA
Destructive

Archive this Collection. It disappears from active views but can be restored.

Inputs: collection_id (required).

personal_os_archive_containerarchive containerB
Destructive

Archive a Container under existing propagation and Inbox rules. It can be restored.

Inputs: container_id (required).

personal_os_archive_notearchive noteA
Destructive

Archive a Note. It disappears from active views but can be restored.

Inputs: note_id (required).

personal_os_archive_projectarchive projectA
Destructive

Archive this Project. It disappears from active views but can be restored.

Inputs: project_id (required).

personal_os_archive_tagarchive tagA
Destructive

Archive a Tag while preserving existing associations. It can be restored.

Inputs: tag_id (required).

personal_os_archive_taskarchive taskB
Destructive

Archive this Task without completing it. It can be unarchived.

Inputs: task_id (required).

personal_os_bulk_update_tasksBulk update TasksA
Destructive

CONFIRMATION REQUIRED. Atomically update 1-100 Tasks; one failure rolls back the entire batch.

Inputs: tasks (required).

personal_os_capabilitiesPersonal OS capabilitiesA
Read-onlyIdempotent

Read the authoritative enums, filters, actions, limits, and lifecycle capabilities advertised by Personal OS.

Inputs: no named parameters.

personal_os_complete_notecomplete noteC

Mark a Note complete using the existing API lifecycle.

Inputs: note_id (required).

personal_os_complete_reviewComplete ReviewB

Complete a review only when no pending items remain.

Inputs: session_id (required).

personal_os_complete_taskcomplete taskB

Complete and archive this Task using the existing lifecycle.

Inputs: task_id (required).

personal_os_create_collectionCreate CollectionC

Create a root-level Collection Container for grouping Tasks; it is not a Checklist.

Inputs: name (required), sort_order, description.

personal_os_create_containerCreate ContainerC

Create a Container/List. Tasks may use Inbox, Project, Collection, Reach Out, or Someday; Area organizes Projects.

Inputs: name (required), type (required), sort_order, description, +1 more.

personal_os_create_noteCreate NoteB

Create a plain-text Note with optional eligible Container, planning, appearance, and complete Tag set.

Inputs: body (required), title, tag_ids, in_inbox, +5 more.

personal_os_create_projectCreate ProjectA

Create a Project under an owned active Area.

Inputs: name (required), area_id (required), sort_order, description.

personal_os_create_tagCreate TagA

Create a normalized owner-scoped Tag with optional description, emoji, and color. Case/whitespace-equivalent names are duplicates.

Inputs: name (required), color, emoji, description.

personal_os_create_taskCreate TaskA

Create one Task in an owned active non-Area Container, optionally replacing its complete Tag set.

Inputs: title (required), container_id (required), due_at, effort, +8 more.

personal_os_delete_collectionDelete CollectionA
Destructive

CONFIRMATION REQUIRED. Permanently and irreversibly delete this Collection, subject to existing Container guards.

Inputs: collection_id (required).

personal_os_delete_containerDelete ContainerA
Destructive

CONFIRMATION REQUIRED. Permanently and irreversibly delete a Container after existing child/content/Inbox guards.

Inputs: container_id (required).

personal_os_delete_noteDelete NoteA
Destructive

CONFIRMATION REQUIRED. Permanently and irreversibly delete this Note; Notes do not use Trash.

Inputs: note_id (required).

personal_os_delete_projectDelete ProjectA
Destructive

CONFIRMATION REQUIRED. Permanently and irreversibly delete this Project, subject to existing Container guards.

Inputs: project_id (required).

personal_os_delete_tagDelete TagA
Destructive

CONFIRMATION REQUIRED. Permanently and irreversibly delete a Tag; pivot assignments are removed.

Inputs: tag_id (required).

personal_os_get_collectionGet CollectionA
Read-onlyIdempotent

Get one owned Collection; a foreign or wrong-typed Container is returned as not found.

Inputs: collection_id (required).

personal_os_get_containerGet ContainerA
Read-onlyIdempotent

Get one owned Container/List.

Inputs: container_id (required).

personal_os_get_noteGet NoteA
Read-onlyIdempotent

Get one owned plain-text Note.

Inputs: note_id (required).

personal_os_get_projectGet ProjectA
Read-onlyIdempotent

Get one owned Project; a foreign or wrong-typed Container is returned as not found.

Inputs: project_id (required).

personal_os_get_reviewGet ReviewB
Read-onlyIdempotent

Get an owned review session and its snapshot items.

Inputs: session_id (required).

personal_os_get_review_summaryGet Review summaryA
Read-onlyIdempotent

Get section and action totals for an owned review session.

Inputs: session_id (required).

personal_os_get_tagGet TagB
Read-onlyIdempotent

Get one owned Tag.

Inputs: tag_id (required).

personal_os_get_taskGet TaskA
Read-onlyIdempotent

Get one owned Task, including its current planning and lifecycle fields.

Inputs: task_id (required).

personal_os_get_task_planningGet Task planningA
Read-onlyIdempotent

Read one Task's current planning and due fields through the existing Task detail endpoint.

Inputs: task_id (required).

personal_os_healthPersonal OS healthA
Read-onlyIdempotent

Check authenticated Personal OS AI API availability without exposing sensitive data.

Inputs: no named parameters.

personal_os_list_archive_itemsList archived itemsA
Read-onlyIdempotent

List the bounded mixed Archive feed of Tasks, Notes, and Checklists.

Inputs: search.

personal_os_list_collectionsList CollectionsA
Read-onlyIdempotent

List active owned Collections. Collection is a typed Container projection.

Inputs: no named parameters.

personal_os_list_containersList ContainersA
Read-onlyIdempotent

List the owned Container hierarchy grouped as Inbox, Areas/Projects, Collections, Reach Out, and Someday.

Inputs: no named parameters.

personal_os_list_inbox_itemsList Inbox itemsB
Read-onlyIdempotent

List the bounded mixed Inbox feed of Tasks, Notes, and Checklists.

Inputs: search.

personal_os_list_notesList NotesA
Read-onlyIdempotent

List active owned plain-text Notes.

Inputs: no named parameters.

personal_os_list_planning_itemsList planning itemsB
Read-onlyIdempotent

List mixed items for an existing unified planning view.

Inputs: view (required), search.

personal_os_list_planning_tasksList planning TasksA
Read-onlyIdempotent

List active Tasks in an authoritative planning view. scheduled requires a date.

Inputs: view (required), date.

personal_os_list_projectsList ProjectsA
Read-onlyIdempotent

List active owned Projects. Project is a typed Container projection.

Inputs: no named parameters.

personal_os_list_reviewsList ReviewsA
Read-onlyIdempotent

List owned review session history.

Inputs: no named parameters.

personal_os_list_review_typesList Review typesA
Read-onlyIdempotent

List available review types and current availability.

Inputs: no named parameters.

personal_os_list_tagsList TagsA
Read-onlyIdempotent

List active owned Tags in normalized display order.

Inputs: no named parameters.

personal_os_list_tasksList TasksA
Read-onlyIdempotent

List owned Tasks using only supported filters. Defaults to at most 100; maximum 200. Duration filters are total minutes: estimated_minutes for an exact match, min_estimated_minutes/max_estimated_minutes for a range (e.g. 'under 30 minutes' -> max_estimated_minutes: 30; 'one to two hours' -> min_estimated_minutes: 60, max_estimated_minutes: 120).

Inputs: limit, state, search, status, +7 more.

personal_os_move_task_to_trashMove Task to TrashA
Destructive

CONFIRMATION REQUIRED. Recoverable soft delete: move an active Task to Trash; this is not final deletion.

Inputs: task_id (required).

personal_os_reopen_taskreopen taskB

Reopen a completed Task and restore its previous status.

Inputs: task_id (required).

personal_os_restore_collectionrestore collectionA

Restore this archived Collection. This is archive restoration, not Trash recovery.

Inputs: collection_id (required).

personal_os_restore_containerrestore containerA

Restore an archived Container and applicable children.

Inputs: container_id (required).

personal_os_restore_noterestore noteA

Restore an archived Note. This is not Trash recovery.

Inputs: note_id (required).

personal_os_restore_projectrestore projectA

Restore this archived Project. This is archive restoration, not Trash recovery.

Inputs: project_id (required).

personal_os_restore_tagrestore tagB

Restore an archived Tag.

Inputs: tag_id (required).

personal_os_restore_taskrestore taskA

Restore an owned Task from Trash. This is Trash recovery, not archive restoration.

Inputs: task_id (required).

personal_os_skip_review_itemSkip Review itemB

Skip one pending item in an owned review session.

Inputs: item_id (required), session_id (required).

personal_os_start_reviewStart ReviewA

Start or resume one review session of an existing ReviewType.

Inputs: type (required).

personal_os_unarchive_taskunarchive taskA

Restore a manually archived Task to active visibility.

Inputs: task_id (required).

personal_os_uncomplete_noteuncomplete noteA

Return a completed Note to its incomplete state.

Inputs: note_id (required).

personal_os_update_collectionUpdate CollectionA

Partially update an owned active Collection. Only supplied fields change.

Inputs: collection_id (required), name, sort_order, description.

personal_os_update_containerUpdate ContainerB

Partially update an owned Container under existing hierarchy and Inbox restrictions.

Inputs: container_id (required), name, type, sort_order, +2 more.

personal_os_update_noteUpdate NoteA

Partially update an active owned Note; tag_ids replaces the complete Tag set.

Inputs: note_id (required), body, title, tag_ids, +6 more.

personal_os_update_projectUpdate ProjectA

Partially update an owned active Project. Only supplied fields change.

Inputs: project_id (required), name, area_id, sort_order, +1 more.

personal_os_update_review_sectionUpdate Review sectionA

Update the current section marker of an in-progress owned review session.

Inputs: session_id (required), current_section (required).

personal_os_update_tagUpdate TagA

Partially update an owned active Tag, including its optional description.

Inputs: tag_id (required), name, color, emoji, +1 more.

personal_os_update_taskUpdate TaskA

Partially update one owned active Task. Only supplied fields change; tag_ids replaces the complete Tag set.

Inputs: task_id (required), title, due_at, effort, +9 more.

personal_os_update_task_planningUpdate Task planningA

Atomically update Task timeline and/or due information; Today/Tomorrow are resolved by Personal OS in the User timezone.

Inputs: task_id (required), due_date, due_time, timeline, +1 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 66 tools

    Disambiguation5/5

    Each tool targets a specific resource and action (e.g., list_tasks vs. list_notes; archive_project vs. archive_container). Subtle distinctions like restore_task (Trash recovery) vs. unarchive_task (archive restoration) are clearly documented, reducing ambiguity despite the large surface.

    Naming Consistency5/5

    All tools follow a strict `personal_os_<verb>_<noun>` pattern in snake_case. Verbs are consistent across resources (list, get, create, update, archive, restore, delete), and special operations like `move_task_to_trash` and `update_task_planning` retain the same predictable style.

    Tool Count1/5

    With 66 tools, the server is extremely heavy. The scope is broad (tasks, notes, tags, containers, projects, collections, reviews, planning), but much duplication exists—projects and collections are typed container projections with full CRUD duplication. This is a severe count that will overwhelm agents and increase misuse risk.

    Completeness4/5

    The lifecycle coverage for tasks, notes, tags, containers, projects, collections, and reviews is comprehensive—including create/read/update/archive/restore/delete or trash. Minor gaps exist, such as no dedicated checklist management tools (checklists are referenced in mixed feeds) and no permanent task deletion, but the core domain is well covered.

    Maintenance

    ActivityStale
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that wraps the Taskwarrior CLI to allow AI assistants to create, query, modify, and manage tasks directly from agentic coding tools.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      A local-stdio MCP server for a single personal Todoist account with env-gated read-only mode and prompt-injection mitigations.
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      MCP server for the Baton task tracker, enabling AI agents to manage tasks, process inbox events, and collaborate with humans via natural language. Wraps the Baton REST API with 12 tools over stdio.
      12
      18 npm
      MIT