knowledge-to-action-mcp
Provides bounded git status inspection and file matching to connect note context to repository files, enabling safe repo handoff.
Provides tools for retrieving and gathering context from Obsidian notes, including listing, reading, searching, backlinks, graph neighbors, and optional embeddings-based retrieval. It turns notes into structured context packets and action plans.
Uses OpenAI's embedding models and planning models to enable semantic search and preview-only action planning from Obsidian notes.
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., "@knowledge-to-action-mcp Create an action plan from my roadmap note about search"
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.
Knowledge-to-Action MCP
Turn Obsidian notes into agent-ready context, preview-only plans, and safe repo handoffs.
![]()
knowledge-to-action-mcp is an MCP server for people whose real project context lives in notes, decisions, roadmaps, and meeting docs, not just code.
Most Obsidian MCP servers stop at "read a note" or "search a vault."
This one goes further:
notes -> retrieval -> context packet -> action plan -> repo handoffThat means an MCP client can move from:
"open this markdown file"to:
"understand the note, pull nearby context, summarize risks,
propose next steps, and show which repo files probably matter"Why It Matters
If you work out of Obsidian, your important context is usually spread across:
roadmap notes
meeting notes
decisions
linked references
repo assumptions
Normal note integrations make an agent read those files.
knowledge-to-action-mcp helps an agent recover the surrounding context and turn it into something actionable without exposing a general shell runner.
Related MCP server: mcp-obsidian-vault
What Makes It Different
Capability | Typical vault MCP |
|
Read notes | Yes | Yes |
Search notes | Yes | Yes |
Follow links / backlinks | Sometimes | Yes |
Graph-aware context recovery | Rarely | Yes |
Optional embeddings | Rarely | Yes |
Agent-ready context packet | No | Yes |
Preview-only plan from note | No | Yes |
Note-to-repo handoff | No | Yes |
General shell access | Sometimes | No |
1-Minute Quickstart
Install:
npm install @tac0de/knowledge-to-action-mcpRun in graph-only mode:
OBSIDIAN_VAULT_ROOT="/path/to/vault" \
npx @tac0de/knowledge-to-action-mcpTurn on optional embeddings and planning:
OBSIDIAN_VAULT_ROOT="/path/to/vault" \
EMBEDDINGS_ENABLED=true \
PLANNING_ENABLED=true \
OPENAI_API_KEY="..." \
npx @tac0de/knowledge-to-action-mcpThen call:
context.retrievecontext.bundle_for_agentaction.plan_from_noteaction.handoff_to_repo
See also:
sample vault:
examples/sample-vault/sample outputs:
examples/sample-output/Claude Desktop config example:
examples/claude-desktop-config.jsonVS Code config example:
examples/vscode-mcp.jsonCursor config example:
examples/cursor-mcp.json
What You Actually Get
1. Obsidian-aware retrieval
deterministic note listing, reading, and search
wikilink resolution
backlinks
shared-tag neighbors
graph-aware context recovery
2. Optional GraphRAG
When embeddings are enabled, retrieval becomes:
lexical + graph + semantic rerankNo external graph database is required.
3. Agent-ready context packets
context.bundle_for_agent returns a structured packet instead of dumping raw markdown into a prompt.
That packet includes:
brief
key facts
open questions
risks
related notes
repo hints
4. Preview-only action planning
action.plan_from_note turns a note into:
summary
goals
constraints
decisions
open questions
suggested actions
handoff prompt
It does not mutate files.
5. Safe repo handoff
action.handoff_to_repo connects note context to a workspace using:
bounded ripgrep queries
bounded git status
matched file suggestions
This is intentionally not a general-purpose shell runner.
Example Workflow
Imagine you have these notes:
roadmap/search.mdmeetings/2026-03-07-search-review.mddecisions/search-scope.md
And a repo with:
src/search.tssrc/features/search/index.ts
This MCP can help an agent:
Retrieve nearby notes with search, backlinks, tags, graph neighbors, and optional embeddings.
Compress that note cluster into a structured context packet.
Turn the source note into a preview-only action plan.
Suggest likely repo files before any edit happens.
That jump from "read notes" to "prepare action safely" is the whole point.
Demo Assets
If you want something concrete before wiring your own vault:
sample vault notes live in
examples/sample-vault/example
context.bundle_for_agentoutput lives inexamples/sample-output/context.bundle_for_agent.jsonexample
action.plan_from_noteoutput lives inexamples/sample-output/action.plan_from_note.jsonexample Claude Desktop config lives in
examples/claude-desktop-config.json
Public Tools
Vault + Graph
vault.list_notesvault.read_notevault.search_notesvault.get_metadatagraph.buildgraph.get_neighborsgraph.get_backlinkscontext.gather
Retrieval + Planning
embeddings.index_vaultcontext.retrievecontext.bundle_for_agentaction.plan_from_noteaction.handoff_to_repo
Workspace Inspection
exec.list_capabilitiesexec.rg_searchexec.list_direxec.git_status
Example Output
context.bundle_for_agent:
{
"brief": "Implement search using the existing dashboard flow.",
"source": "roadmap/search.md",
"keyFacts": [
"Title: Search",
"Tags: roadmap,search"
],
"openQuestions": [
"Where is the current search entrypoint?"
],
"risks": [
"Assumption: repo layout may differ from note context"
],
"repoHints": {
"matchedFiles": [
"src/search.ts",
"src/features/search/index.ts"
],
"suggestedQueries": [
"Search",
"search"
]
}
}action.plan_from_note:
{
"source": "roadmap/search.md",
"summary": "Implement search using the existing dashboard flow.",
"goals": [
"Ship dashboard search"
],
"constraints": [
"No mutation without explicit approval"
],
"openQuestions": [
"Where is the current search entrypoint?"
],
"suggestedActions": [
"Review matched repo files",
"Resolve open questions before implementation"
],
"generationMode": "deterministic"
}Configuration
Required
OBSIDIAN_VAULT_ROOT
Optional embeddings
EMBEDDINGS_ENABLED=falseEMBEDDING_PROVIDER=openaiEMBEDDING_MODEL=text-embedding-3-smallEMBEDDING_SQLITE_PATH=.knowledge-to-action-mcp/index.sqliteOPENAI_API_KEY=...
Optional planning
PLANNING_ENABLED=falsePLANNING_PROVIDER=openaiPLANNING_MODEL=gpt-4.1-mini
Optional workspace inspection
EXECUTION_ENABLED=falseEXECUTION_CAPABILITIES=workspace.search,workspace.inspect,workspace.git_statusEXECUTION_TIMEOUT_MS=5000EXECUTION_MAX_OUTPUT_BYTES=32768
Install In MCP Clients
Example stdio config:
{
"command": "npx",
"args": ["-y", "@tac0de/knowledge-to-action-mcp"],
"env": {
"OBSIDIAN_VAULT_ROOT": "/path/to/vault"
}
}VS Code
Add to .vscode/mcp.json:
{
"servers": {
"knowledge-to-action": {
"command": "npx",
"args": ["-y", "@tac0de/knowledge-to-action-mcp"],
"env": {
"OBSIDIAN_VAULT_ROOT": "/path/to/vault"
}
}
}
}Cursor
Add to .cursor/mcp.json:
{
"mcpServers": {
"knowledge-to-action": {
"command": "npx",
"args": ["-y", "@tac0de/knowledge-to-action-mcp"],
"env": {
"OBSIDIAN_VAULT_ROOT": "/path/to/vault"
}
}
}
}Security Boundary
This package is designed to be useful without turning into a local shell bomb.
vault access is read-only
plan generation is preview-only
embeddings are optional and local
repo inspection is bounded to the configured working directory
no generic
bash.execor arbitrary command tool is exposed
Good Fit
Use this project if you want:
Obsidian-native GraphRAG
note-to-action workflows for agents
structured context instead of giant markdown dumps
repo-aware handoff without broad execution access
Not Trying To Be
a general purpose agent runtime
a write-enabled automation framework
a hosted knowledge platform
a vector database product
Compatibility
package name:
@tac0de/knowledge-to-action-mcplegacy CLI alias:
obsidian-mcpNode.js 20+
Status
v2.1.1 is usable now:
typecheck passes
unit and integration tests pass
npm pack dry-run passes
The project is still early, but the main workflow is already working.
License
MIT
Available Tools
13 toolsaction.handoff_to_repoCRead-only
Connect note context to a related workspace using read-only inspection commands.
Inputs: path (required), workspacePath, queryHints, maxMatches. Returns: noteSummary, matchedFiles, ripgrepHits, gitStatus, +2 more
action.plan_from_noteBRead-only
Create a preview-only action plan from a note and nearby context.
Inputs: path (required), objective, style, useModel, +1 more. Returns: source, summary, goals, constraints, +5 more
context.bundle_for_agentCRead-only
Build an agent-ready context packet from a note and related vault context.
Inputs: path (required), objective, maxNotes, maxTotalBytes, +2 more. Returns: brief, objective, source, relatedNotes, +5 more
context.gatherCRead-only
Gather related context for a note using the knowledge graph. Returns scored related notes with snippets, ranked by relationship strength.
Inputs: path (required), maxNotes, maxTotalBytes. Returns: source, relatedNotes, totalNodes, graphDepth
context.retrieveCRead-only
Retrieve notes using lexical, graph, and optional embedding-based reranking.
Inputs: query (required), path, maxResults, maxTotalBytes, +1 more. Returns: query, sourcePath, retrievalMode, results, +1 more
embeddings.index_vaultC
Chunk vault notes and persist optional embeddings to a local SQLite index.
Inputs: glob, maxNotes, chunkSize, chunkOverlap, +1 more. Returns: notesIndexed, chunksIndexed, skipped, provider, +1 more
graph.buildARead-only
Build the knowledge graph from the vault. Parses all wikilinks, tags, and computes backlinks. Must be called before using other graph/context tools.
Inputs: no named parameters. Returns: nodes, edges, tags, buildTimeMs
graph.get_backlinksARead-only
Get all notes that link to the specified note. Graph must be built first.
Inputs: path (required). Returns: source, backlinks, total
graph.get_neighborsARead-only
Get neighbor nodes of a note in the knowledge graph (BFS traversal). Includes outLinks, backLinks, and shared-tag neighbors. Graph must be built first.
Inputs: path (required), depth. Returns: source, neighbors, total
vault.get_metadataBRead-only
Return frontmatter and metadata from a note.
Inputs: path (required). Returns: path, title, tags, frontmatter
vault.list_notesARead-only
List notes in the vault using deterministic ordering.
Inputs: folder, glob, limit. Returns: notes, total
vault.read_noteBRead-only
Read one note from the vault and return stable hash metadata.
Inputs: path (required), maxBytes. Returns: path, content, bytes, sha256, +1 more
vault.search_notesBRead-only
Search note contents in deterministic order.
Inputs: query (required), caseSensitive, limit. Returns: matches, total
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
Each tool has a clearly distinct purpose within its category (actions, context, embeddings, graph, vault). No overlapping functionality detected; even tools within the same category (e.g., context.gather and context.retrieve) have different retrieval methods.
All tool names follow a consistent pattern: category.snake_case_action (e.g., action.handoff_to_repo, vault.list_notes). The naming is descriptive and predictable, with no mixed conventions.
13 tools is well within the optimal range for a server of this scope. The count covers all necessary operations for knowledge management and action planning without unnecessary bloat.
The tool surface covers core workflows: graph building, context retrieval, note reading/searching, embedding indexing, and action planning. Missing tools for note creation or modification are acceptable given the read-analysis-plan focus, but a minor gap exists for editing vault content.
Maintenance
Related MCP Connectors
Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analy…
Research-backed lint + generation for agent context files (CLAUDE.md, AGENTS.md) + prompt enhancer.
Agent-native notes, tasks, dev-docs, vaults, sync & handoffs. MCP + OpenAPI dual surface.
Open-source Obsidian for MDX - edit local docs with agent assistance
Related MCP Servers
- AlicenseBqualityBmaintenanceConnects AI assistants directly to Obsidian vaults with intelligent note creation using templates, semantic search, smart tagging to avoid duplicates, and specialized agent roles (Guardian, Researcher, Connection Weaver) for managing knowledge bases.3512MIT
- AlicenseAqualityDmaintenanceProvides AI agents with direct filesystem access to an Obsidian vault for note management, task orchestration, context persistence, and git synchronization.2750 npm3MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI coding agents to search, read, and write notes in an Obsidian vault via MCP tools, and monitor product handoffs and state.MIT
- AlicenseAqualityDmaintenanceEnables AI agents to store and retrieve project context, bugs, decisions, and session logs by reading and appending markdown files in a local Obsidian vault, without requiring any cloud services.6MIT