mcp

mcp is a cursor rule for Cursor from quinnjr/google-mcp. It costs 0 tokens per session (1,505 once invoked), scanned A, original, MIT.

A set of guidelines for building Model Context Protocol (MCP) servers. MCP is a standard way for AI agents to call tools that connect to outside services or data.

In plain words
What is it for?
Use it when designing MCP tools, writing their JSON input schemas, and documenting how they work.
Why use it?
It helps developers design tool names, input descriptions, and error messages that are consistent and understandable.

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/quinnjr/google-mcp/mcp
Clone the repo
git clone --depth 1 https://github.com/quinnjr/google-mcp

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

README.md
[![agentmods](https://agentmods.dev/badge/rules/quinnjr/google-mcp/mcp.svg)](https://agentmods.dev/rules/quinnjr/google-mcp/mcp)
Your own site
<a href="https://agentmods.dev/rules/quinnjr/google-mcp/mcp"><img src="https://agentmods.dev/badge/rules/quinnjr/google-mcp/mcp.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 1,505 The whole file, excluding the scripts and references it only reads on demand.
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 $0.00000 $0.01505
Opus 5 $0.00000 $0.00753
Sonnet 5 $0.00000 $0.00301
Haiku 4.5 $0.00000 $0.00151

Measured 3d ago against content hash 8833f42cbb09, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

mcp 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 3d 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/mcp.mdc · 311 lines

How it starts

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

MCP Server Best Practices

Follow these conventions when developing MCP servers.

Tool Design

Naming Conventions

Use descriptive, action-oriented names with service prefixes:

// Good - clear service prefix and action
"drive_list_files"
"docs_create"
"calendar_get_event"
"gmail_send_message"

// Bad - unclear or inconsistent
"listFiles"
"getDoc"
"sendEmail"

Input Schemas

Always provide comprehensive JSON schemas for tool inputs:

{
  name: "calendar_create_event",
  description: "Create a new calendar event with title, time, and optional attendees",
  inputSchema: {
    type: "object",
    properties: {
      title: {
        type: "string",
        description: "Event title/summary"
      },
      startTime: {
        type: "string",
        description: "Start time in ISO 8601 format (e.g., 2024-01-15T10:00:00Z)"
      },
      endTime: {
        type: "string",
        description: "End time in ISO 8601 format"
      },
      attendees: {
        type: "array",
        items: { type: "string" },
        description: "Email addresses of attendees (optional)"
      }
    },
    required: ["title", "startTime", "endTime"]
  }
}

Descriptions

Write clear, actionable descriptions that help the LLM understand:

  • What the tool does
  • When to use it
  • What parameters mean
  • What the output contains
// Good
description: "Search for files in Google Drive by name, type, or content. Returns file IDs, names, and metadata. Use this to find files before performing operations on them."

// Bad
description: "Search files"

Error Handling

Return Structured Errors

Always return errors in a consistent format:

if (!this.isAuthenticated()) {
  return {
    content: [{
      type: "text",
      text: JSON.stringify({
        error: "NotAuthenticated",
        message: "Please authenticate first using the google_auth tool",
        suggestion: "Run the google_auth tool to start the OAuth flow"
      }, null, 2)
    }],
    isError: true
  };
}

Read the full file on GitHub · 311 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. 3d ago First seen · 311 lines · 0 tokens per session scan A 8833f42cbb09

Subscribe to this mod's changes

mcp is a cursor rule published in the GitHub repository quinnjr/google-mcp (11 stars, last pushed 6d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,505 tokens. 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.