lifeos-mcp
Provides read access to a LifeOS knowledge base, enabling OpenAI Codex agents to retrieve identity, preferences, skills, projects, wiki pages, rules, and perform full-text search.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@lifeos-mcp show my current projects"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
LifeOS MCP
Give any AI agent read access to your LifeOS knowledge base — Claude Desktop, Claude Code, Cursor, ChatGPT, Codex, or any MCP-compatible client.
The server reads from ~/lifeos/ and surfaces everything through lifeos:// resource URIs and lifeos__* tool names.
Install
Once published (coming soon)
npx lifeos-mcpFrom source (now)
git clone https://github.com/bwats/lifeos-mcp
cd lifeos-mcp
npm install && npm run build
node bin/lifeos-mcp.jsGlobal install from source
cd ~/lifeos-mcp
npm install -g .
lifeos-mcp # starts the MCP server on stdioWhat it exposes
lifeos-mcp gives any MCP-compatible AI client direct read access to:
Surface | Path in ~/lifeos/ | Tool |
Identity |
|
|
Preferences |
|
|
Skills |
|
|
Projects |
|
|
Wiki |
|
|
Rules |
|
|
Any file | (path-safe) |
|
Search | (full-text) |
|
Modes
Invocation | What happens |
| Start MCP server on stdio (default) |
| Start MCP server on stdio (explicit) |
| List rituals in |
| Validate a ritual spec file |
| Render ritual to a target harness |
| Show all subcommands and options |
Configure MCP clients
Claude Desktop
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"lifeos": {
"command": "npx",
"args": ["lifeos-mcp"]
}
}
}Or from source:
{
"mcpServers": {
"lifeos": {
"command": "node",
"args": ["/Users/yourname/lifeos-mcp/bin/lifeos-mcp.js"]
}
}
}Cursor (settings.json)
{
"mcpServers": {
"lifeos": {
"command": "node",
"args": ["/Users/yourname/lifeos-mcp/bin/lifeos-mcp.js"]
}
}
}Claude Code (~/.claude/settings.json)
{
"mcpServers": {
"lifeos": {
"command": "node",
"args": ["/Users/yourname/lifeos-mcp/bin/lifeos-mcp.js"]
}
}
}OpenAI Codex (codex.json)
{
"mcpServers": {
"lifeos": {
"command": "node",
"args": ["/Users/yourname/lifeos-mcp/bin/lifeos-mcp.js"]
}
}
}Custom LifeOS path
Pass --lifeos-path or set LIFEOS_PATH env var:
{
"mcpServers": {
"lifeos": {
"command": "node",
"args": [
"/Users/yourname/lifeos-mcp/bin/lifeos-mcp.js",
"--lifeos-path", "/custom/path/to/lifeos"
]
}
}
}Environment variables
Variable | Default | Description |
|
| Absolute path to the LifeOS root directory |
Tools
Tool | Description |
| Check server health and LifeOS availability |
| Read |
| Read |
| List all skill directory names in |
| Read documentation for a named skill |
| List rule/guideline names from |
| Read a specific rule file |
| List project filenames from |
| Read a specific project definition |
| List all wiki page paths recursively |
| Read a wiki page by path |
| Full-text search across all LifeOS files |
| Read any file under |
| Propose a typed semantic edge between two knowledge nodes |
| Accept a proposed edge (write-opt-in required) |
| Reject a proposed edge (write-opt-in required) |
| List pending edge proposals (always read-only) |
Resources
URI | Description |
| LifeOS identity profile ( |
| User preferences ( |
| Skill documentation for |
| Project definition for |
| Wiki page at |
| System rule at |
All template resources support listing — clients can enumerate available resources.
CLI subcommands
# List all rituals with id, title, and trigger summary
lifeos-mcp list
# Validate a ritual spec (structural check)
lifeos-mcp validate ~/lifeos/cadence/rituals/morning-review.md
# Render a ritual to a harness
lifeos-mcp render ~/lifeos/cadence/rituals/morning-review.md --to openclaw
lifeos-mcp render ~/lifeos/cadence/rituals/morning-review.md --to claude-codeRenderer interface (pluggable)
Third-party renderers plug in at runtime via registerRenderer:
import { registerRenderer } from "lifeos-mcp/dist/renderers/index.js";
registerRenderer({
name: "my-harness",
async render(spec, body, ctx) {
return {
files: [{ path: "/out/job.json", content: JSON.stringify(spec) }],
summary: `Rendered ${spec.id} to my-harness`,
};
},
});Built-in renderers: openclaw (cron job JSON), claude-code (slash command + launchd plist).
Security
All file paths are validated to stay within the LifeOS root — no path traversal possible.
The server is read-only by default; write tools (
lifeos__propose_edge,lifeos__accept_edge,lifeos__reject_edge) require explicit opt-in via~/Library/Application Support/LifeOS/mcp-write-config.json.Only files under
~/lifeos/(orLIFEOS_PATH) are accessible.
Build
cd ~/lifeos-mcp
npm install
npm run build
# Output: dist/ + bin/lifeos-mcp.jsLicense
MIT
Available Tools
17 toolslifeos__accept_edgeA
Accept a proposed edge in the LifeOS Curator inbox. Optionally edit rationale, type, or citations before accepting. Fires a curator: git commit in ~/lifeos/.
Inputs: edge_id (required), edits.
lifeos__get_identityA
Read the user's identity profile from LifeOS (identity.md). Returns frontmatter metadata and full content.
Inputs: no named parameters.
lifeos__get_preferencesA
Read the user's preferences from LifeOS (preferences.md).
Inputs: no named parameters.
lifeos__healthA
Check the health of the LifeOS MCP server and LifeOS data availability.
Inputs: no named parameters.
lifeos__list_projectsA
List all project definition files from LifeOS (~/lifeos/projects/*.md).
Inputs: no named parameters.
lifeos__list_rulesA
List system rules and guidelines from LifeOS (~/lifeos/system/ markdown files).
Inputs: no named parameters.
lifeos__list_skillsA
List all available skills in LifeOS (~/lifeos/skills/ directories).
Inputs: no named parameters.
lifeos__list_wiki_pagesA
List all wiki pages from LifeOS (~/lifeos/wiki/pages/ recursively).
Inputs: no named parameters.
lifeos__propose_edgeA
Propose a typed semantic edge between two vault nodes. Routes through CitationVerifier and NoveltyScorer. Edge lands in the LifeOS Curator inbox with reviewState=proposed for user review.
Inputs: src (required), dst (required), type (required), confidence (required), +5 more.
lifeos__read_fileA
Read any file under ~/lifeos/ by relative path. Path is validated to stay within LifeOS root.
Inputs: path (required).
lifeos__read_pending_queueA
List proposed edges waiting in the LifeOS Curator inbox. Read-only — no write opt-in required. Use since and limit to paginate.
Inputs: since, limit.
lifeos__read_projectA
Read a specific project definition from LifeOS. Use lifeos__list_projects to see available names.
Inputs: name (required).
lifeos__read_ruleA
Read a specific rule/guideline from LifeOS system/ directory. Use lifeos__list_rules to see available names.
Inputs: name (required).
lifeos__read_skillA
Read the documentation for a specific skill from LifeOS. Use lifeos__list_skills first to see available names.
Inputs: name (required).
lifeos__read_wiki_pageA
Read a specific wiki page from LifeOS. Use lifeos__list_wiki_pages to see available names.
Inputs: name (required).
lifeos__reject_edgeA
Reject a proposed edge in the LifeOS Curator inbox. Reason is required — it feeds the rejection corpus used to improve future proposals.
Inputs: edge_id (required), reason (required).
lifeos__searchB
Full-text search across all LifeOS files (identity, projects, skills, wiki, rules, etc.).
Inputs: query (required), maxResults.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 17 tools
Each tool targets a distinct entity or action: identity, preferences, projects, rules, skills, wiki, edges, health, file reading, and search. No two tools have overlapping purposes, making it easy for an agent to select the correct one.
Tools follow a consistent 'lifeos__verb_noun' pattern with underscores. Most use 'list_' for listing and 'read_' for reading, but 'get_identity' and 'get_preferences' use 'get_', and 'health' and 'search' are single-word actions. Minor inconsistency but overall predictable.
17 tools is well-scoped for a personal knowledge management system. It covers core reading, edge curation, search, and health check without being overwhelming. Each tool serves a clear purpose.
The tool set provides comprehensive read access and edge management, but lacks CRUD operations for identity, preferences, projects, rules, skills, and wiki pages. Only edges have full lifecycle. This creates gaps for an agent wanting to modify core content.
Related MCP Connectors
Knowledge base MCP for AI agents on iknow.dev. Search, read, and maintain via OAuth.
Knowledge base for AI agents: search, read, tasks; write, correct, report outcomes via /mcp/write.
Read-only MCP tools for AI agent discovery, structured resources, and NIULAI information.
Public identity and knowledge base for AI agents: profiles, goals, concepts, documents, revisions.