mcp-filesystem

mcp-filesystem is a cursor rule for Cursor from omril321/automated-notebooklm. It costs 1,699 tokens per session, scanned A, original, Apache-2.0.

A set of rules for using an MCP filesystem connector to read, search, list, edit, move, and create files and directories.

In plain words
What is it for?
Use it when a CursorRIPER workflow needs structured filesystem operations such as research, planning, execution, or review.
Why use it?
It defines which filesystem actions are allowed in each work mode, making file access more predictable for an AI coding workflow.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/omril321/automated-notebooklm/mcp-filesystem
Clone the repo
git clone --depth 1 https://github.com/omril321/automated-notebooklm

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mcp-filesystem

README.md
[![agentmods](https://agentmods.dev/badge/rules/omril321/automated-notebooklm/mcp-filesystem.svg)](https://agentmods.dev/rules/omril321/automated-notebooklm/mcp-filesystem)
Your own site
<a href="https://agentmods.dev/rules/omril321/automated-notebooklm/mcp-filesystem"><img src="https://agentmods.dev/badge/rules/omril321/automated-notebooklm/mcp-filesystem.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,699 This file is loaded in full into every session.
When invoked 1,699 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.01699 $0.01699
Opus 5 $0.00849 $0.00849
Sonnet 5 $0.00340 $0.00340
Haiku 4.5 $0.00170 $0.00170

Measured 5d ago against content hash 744725f78124, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

mcp-filesystem scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/riper/mcp-filesystem.mdc · 171 lines

How it starts

The opening of the file, as written. The whole thing — 171 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CursorRIPER♦Σ Filesystem MCP Integration

📁 MCP Filesystem Operations

Φ_fs = { read(path) = mcp_call("read_file", {path}), read_multi(paths) = mcp_call("read_multiple_files", {paths}), write(path, content) = mcp_call("write_file", {path, content}), edit(path, edits, dry_run = false) = mcp_call("edit_file", {path, edits, dryRun: dry_run}), create_dir(path) = mcp_call("create_directory", {path}), list(path) = mcp_call("list_directory", {path}), tree(path) = mcp_call("directory_tree", {path}), move(source, dest) = mcp_call("move_file", {source, destination: dest}), search(path, pattern, exclude = []) = mcp_call("search_files", {path, pattern, excludePatterns: exclude}), info(path) = mcp_call("get_file_info", {path}), allowed() = mcp_call("list_allowed_directories", {}) }

🔌 Mode-Specific Filesystem Operations

MΦ = { Ω₁: Φ_fs[read, read_multi, list, tree, search, info, allowed], // Research Ω₂: Φ_fs[read, list, tree, search, info, allowed], // Innovate Ω₃: Φ_fs[read, list, search, info, create_dir, allowed], // Plan Ω₄: Φ_fs[read, write, edit, create_dir, move, allowed], // Execute Ω₅: Φ_fs[read, read_multi, list, tree, search, info, allowed] // Review }

🔒 Filesystem Permission Matrix

ℙΦ = { Ω₁: {read: ✓, create: ✗, update: ✗, delete: ✗}, // Research Ω₂: {read: ✓, create: ~, update: ✗, delete: ✗}, // Innovate Ω₃: {read: ✓, create: ✓, update: ~, delete: ✗}, // Plan Ω₄: {read: ✓, create: ✓, update: ✓, delete: ~}, // Execute Ω₅: {read: ✓, create: ✗, update: ✗, delete: ✗} // Review }

🔍 Filesystem Operation Categories

𝕆fs_read = {read, read_multi, list, tree, search, info, allowed} 𝕆fs_create = {write, create_dir} 𝕆fs_update = {edit, move} 𝕆fs_delete = {delete} // Not directly exposed in basic MCP

📡 Filesystem Context Integration

// Add Filesystem to Context References Γ₉ = 🗃️ @Filesystem

// Update Mode-Context Mapping to include Filesystem MΓ_fs = { Ω₁: MΓ[Ω₁] + [Γ₉], // Add to Research Ω₂: MΓ[Ω₂], // Innovate unchanged Ω₃: MΓ[Ω₃] + [Γ₉], // Add to Plan Ω₄: MΓ[Ω₄] + [Γ₉], // Add to Execute Ω₅: MΓ[Ω₅] + [Γ₉] // Add to Review }

Read the full file on GitHub · 171 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 171 lines · 1,699 tokens per session scan A 744725f78124

Subscribe to this mod's changes

mcp-filesystem is a cursor rule published in the GitHub repository omril321/automated-notebooklm (15 stars, last pushed 7mo ago), licensed Apache-2.0. It adds 1,699 tokens to every session, about $0.0085 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.