cursorrules

A project rules file describing the open-deep-research codebase, including its research workflow, libraries, and MCP integration. Open-deep-research is an AI assistant that searches, collects, and summarizes information.

In plain words
What is it for?
Use it when working on the project’s research, web extraction, Gemini-based report generation, workflow documentation, or MCP connection.
Why use it?
It gives an agent shared project context and coding guidance before it changes or extends the repository.

Cursor rule for 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/hfredrick69/deep-research-mcp-server/cursorrules
Clone the repo
git clone --depth 1 https://github.com/hfredrick69/deep-research-mcp-server

Made for: Cursor.

Per session 10,405 This file is loaded in full into every session.
When invoked 10,405 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod 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 $0.10405 $0.10405
Opus 5 $0.05202 $0.05202
Sonnet 5 $0.02081 $0.02081
Haiku 4.5 $0.01040 $0.01040

Measured yesterday against content hash 753e18cc187e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cursorrules 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 yesterday.

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.

Origin

This is a copy

100% identical to cursorrules — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.cursorrules · 631 lines

How it starts

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

.cursorrules

@project-documentation(projectName: "open-deep-research - Ultimate Development Guide & Code Snippets Collection") {

@section(name: "Project Overview", level: 1) { @project-overview { @short-description: "open-deep-research: Your AI-Powered Research Assistant. Conduct iterative, deep research using search engines, web scraping, and Gemini LLMs, all within a lightweight and understandable codebase." @mcp-tool-availability: "Seamlessly Integrate with AI Agents via MCP. Available as a Model Context Protocol (MCP) tool for easy integration into larger AI agent systems." @core-libraries: "Powered by Key Libraries. Leverages Firecrawl for efficient web data extraction and Gemini for advanced language understanding and report generation." @goal: "Keep it Simple, Keep it Deep. Provides the simplest yet most effective implementation of a deep research agent, designed for clarity and easy extension (<500 LoC goal). " @workflow-reference: "Workflow Diagram Included. Refer to the 'Project Workflow Diagram' section for a visual representation of the research process." @license: "MIT Licensed. Freely use, modify, and build upon open-deep-research under the permissive MIT License." } @note: "Key Project Philosophy: 'open-deep-research' prioritizes simplicity and clarity, aiming to provide a foundational research agent that is easy to understand, modify, and extend. It's designed to be a starting point for building more sophisticated AI-driven research tools." }

@section(name: "Project Workflow Diagram", level: 1) { @workflow-diagram(description: "Mermaid flowchart representation of the Deep Research workflow (see README)") { @flowchart-mermaid { ```mermaid flowchart TB subgraph Input Q[User Query] B[Breadth Parameter] D[Depth Parameter] end

        DR[Deep Research] -->
        SQ[SERP Queries] -->
        PR[Process Results]

        subgraph Results[Results]
            direction TB
            NL((Learnings))
            ND((Directions))
        end

        PR --> NL
        PR --> ND

        DP{depth > 0?}

        RD["Next Direction:
        - Prior Goals
        - New Questions
        - Learnings"]

        MR[Markdown Report]

        %% Main Flow
        Q & B & D --> DR

        %% Results to Decision
        NL & ND --> DP

        %% Circular Flow
        DP -->|Yes| RD
        RD -->|New Context| DR

        %% Final Output
        DP -->|No| MR

        %% Styling
        classDef input fill:#7bed9f,stroke:#2ed573,color:black
        classDef process fill:#70a1ff,stroke:#1e90ff,color:black
        classDef recursive fill:#ffa502,stroke:#ff7f50,color:black
        classDef output fill:#ff4757,stroke:#ff6b81,color:black
        classDef results fill:#a8e6cf,stroke:#3b7a57,color:black

        class Q,B,D input
        class DR,SQ,PR process
        class DP,RD recursive
        class MR output
        class NL,ND results
    ```
  }
  @note: "**Workflow Visualization:** This Mermaid diagram provides a visual overview of the core research process within 'open-deep-research'.  Use it to understand the flow of data and control within the agent."
}

}

@section(name: "Key Features", level: 1) { @features-section(description: "Key features of the open-deep-research agent") { @feature(name: "MCP Integration", description: "MCP Ready: Seamlessly integrates as a Model Context Protocol tool into AI agent ecosystems, enabling plug-and-play research capabilities.") @feature(name: "Iterative Research", description: "Iterative Deep Dive: Explores topics deeply through iterative query refinement and result processing, mimicking the in-depth approach of expert human researchers.") @feature(name: "Intelligent Query Generation", description: "Gemini-Powered Queries: Leverages the power of Gemini LLMs to generate smart, targeted search queries, adapting to research goals and accumulated learnings for optimal information retrieval.") @feature(name: "Depth & Breadth Control", description: "Tuneable Research Scope: Offers highly configurable depth and breadth parameters, allowing users to precisely control the scope and intensity of research exploration, from focused investigations to broad surveys.") @feature(name: "Smart Follow-up Questions", description: "Clarify Research Needs with Follow-up Questions: Intelligently generates follow-up questions to refine ambiguous user queries, ensuring the research agent is precisely aligned with the user's intended topic.") @feature(name: "Comprehensive Markdown Reports", description: "Detailed, Ready-to-Use Markdown Reports: Generates well-structured, human-readable Markdown reports, summarizing key findings, insights, and providing a clear list of sources for verification and further exploration.") @feature(name: "Concurrent Processing for Speed", description: "Efficient & Fast with Concurrent Processing: Maximizes research efficiency and speed by handling multiple searches and data analysis tasks in parallel, leveraging asynchronous operations.") } @note: "Feature Highlights: These key features are designed to make 'open-deep-research' a powerful, versatile, and efficient research tool, while maintaining a clear and understandable codebase." }

Read the full file on GitHub · 631 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. yesterday First seen · 631 lines · 10,405 tokens per session scan A 753e18cc187e

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository hfredrick69/deep-research-mcp-server (0 stars, last pushed 7mo ago), licensed MIT. It adds 10,405 tokens to every session, about $0.0520 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to cursorrules, differing in 0 lines, and is treated as a copy.