Basalt MCP
Provides tools to interact with Obsidian vaults, allowing users to list files, read multiple files by name or pattern, find open todo items, and create or update file content within a secure, sandboxed environment.
Click on "Install 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., "@Basalt MCPfind all my open tasks in my vault"
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.
Basalt MCP
A security-hardened Model Context Protocol server with two independent tool modules: Obsidian vault tools for managing a knowledge base, and git tools for LLM-assisted code review. Built for adversarial environments where the connected AI cannot be trusted.
Tools
Obsidian Vault Tools (--vault)
Tool | Description |
| List all vault files, sorted by most recently modified |
| Read files by exact, case-insensitive, or partial name match |
| Find all unchecked todo items ( |
| Create or update files (9-step write validation chain) |
| Search vault files by content (plain text or regex) with context snippets |
| Append content to an existing file (no file creation) |
| List vault files filtered by folder and/or extension |
Git Tools (--repo)
Tool | Description |
| Working tree status (staged, unstaged, untracked) |
| Commit history with configurable depth |
| Diff output (working tree, staged, or against a ref) |
| Per-line blame for a file |
All git tools are read-only. No mutations (no commit, push, reset, checkout).
Related MCP server: Void MCP Filesystem Server
Quick Start
npm install
npm run buildUsage
# Both modules — vault for context, repo for code review
node dist/index.js --vault /path/to/vault --repo /path/to/repo
# Vault only
node dist/index.js --vault /path/to/vault
# Repo only
node dist/index.js --repo /path/to/repoAt least one of --vault or --repo is required. The vault and repo are independent directories — the vault is a knowledge base (Obsidian), the repo is a code repository (git).
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"basalt": {
"command": "node",
"args": [
"/absolute/path/to/basalt-mcp/dist/index.js",
"--vault", "/path/to/your/vault",
"--repo", "/path/to/your/repo"
]
}
}
}Cursor
Add to .cursor/mcp.json in your project:
{
"mcpServers": {
"basalt": {
"command": "node",
"args": [
"/absolute/path/to/basalt-mcp/dist/index.js",
"--vault", "/path/to/your/vault",
"--repo", "/path/to/your/repo"
]
}
}
}The server communicates over stdio using the MCP JSON-RPC protocol.
Security
The server treats every tool call as potentially hostile.
Vault tools — all filesystem access is sandboxed to the vault directory through multiple independent layers:
9-step write validation chain — null bytes, dot-paths, extension allowlist, path limits, vault containment, symlinked parent walk, atomic
O_NOFOLLOWwriteExtension allowlist — only
.mdand.canvas(native Obsidian formats)3-layer symlink defense — glob-level exclusion, parent directory walk, kernel-level
O_NOFOLLOWError sanitization — never leaks system paths or OS details
Untrusted-content metadata — filenames, file content, todos, search results, and git output are marked untrusted for MCP clients
Resource limits — 10 MB read cap, 1 MB write cap, 50 filenames per request, 5 partial match results, 20 search match cap
Git tools — all git execution is sandboxed to the repo directory:
execFileSynconly — no shell, no command injection possibleRef name allowlist — rejects shell metacharacters, backticks,
$(), pipes, semicolonsPath validation — blame file paths go through null byte check, repo containment, and symlink walk
Output sanitization — repo path stripped from all output, 100KB output cap, 10s timeout
See SECURITY.md for the full threat model, design rationale, and all 118 tested attack vectors.
Development
npm test # run all 341 tests
npm run test:watch # watch mode
npm run lint # type-check without emitting
npm run dev # watch mode compilationProject Structure
src/
├── index.ts Server entrypoint (--vault/--repo flags, stdio transport)
├── core/ Shared security framework
│ ├── validation.ts Assertion functions (7)
│ ├── vault.ts Immutable vault path management
│ ├── repo.ts Immutable repo path management + git validation
│ ├── contentBoundary.ts Boundary markers for untrusted content (spotlighting)
│ └── errors.ts Error sanitization
└── tools/
├── obsidian/ Obsidian vault tool module
│ ├── getAllFilenames.ts
│ ├── readMultipleFiles.ts
│ ├── getOpenTodos.ts
│ ├── updateFileContent.ts
│ ├── searchVault.ts
│ ├── appendToFile.ts
│ └── listFiles.ts
└── git/ Git tool module
├── exec.ts Safe git execution helper
├── gitStatus.ts
├── gitLog.ts
├── gitDiff.ts
└── gitBlame.tsThe architecture separates the security core from tool implementations. The core handles validation, sandboxing, and error sanitization. Tool modules plug into the core and inherit all protections. The two modules are independent — you can run either or both.
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseAqualityDmaintenanceAn MCP server that enables AI assistants to interact with Obsidian vaults by providing tools for note management, full-text search, and link analysis. It supports comprehensive file operations, frontmatter manipulation, and daily note creation while ensuring security through path validation.Last updated191
- Flicense-qualityDmaintenanceA secure, sandboxed MCP server that provides Void Editor with safe filesystem access, enabling AI to create, read, modify, and delete files with comprehensive security controls.Last updated1
- Alicense-qualityAmaintenanceSecurity-first MCP server plugin for Obsidian that gives AI assistants granular, permissioned access to vault notes and files through tools like read, write, delete, rename, search, and open-notes.Last updated1MIT
- Alicense-qualityBmaintenanceA deny-by-default MCP server for Obsidian vaults where operators declare exact capabilities (list, read, create, etc.) scoped by path globs; everything not permitted is impossible by construction as disallowed tools are never registered.Last updatedMIT
Related MCP Connectors
MCP server teaching AI agents to implement TideCloak: auth, E2EE, IGA, security analysis
Security scanner for MCP servers. Detect vulnerabilities, prompt injection, and tool poisoning.
Cloud-hosted MCP server for durable AI memory
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/cmillstead/basalt-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server