modelcontextprotocol

A set of development rules for building MCP servers. MCP is a standard that lets coding agents use tools, read resources, and follow prepared prompts.

In plain words
What is it for?
It helps plan and implement MCP servers using the documented development guidelines.
Why use it?
It gives developers guidance on server capabilities, project structure, communication methods, type hints, and asynchronous code.

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/fastmcp-me/mcp-server-apache-airflow/modelcontextprotocol
Clone the repo
git clone --depth 1 https://github.com/fastmcp-me/mcp-server-apache-airflow

Made for: Cursor.

Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 2,511 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00000 $0.02511
Opus 5 $0.00000 $0.01256
Sonnet 5 $0.00000 $0.00502
Haiku 4.5 $0.00000 $0.00251

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

Security

Grade A, and why

modelcontextprotocol scanned grade A with 1 finding 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

from urllib.parse import urlparse
Origin

This is a copy

100% identical to modelcontextprotocol — 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.

.cursor/rules/modelcontextprotocol.mdc · 445 lines

How it starts

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

At the start of your every response, say "APPLIED MODELCONTEXTPROTOCOL RULE".

Model Context Protocol (MCP) Server Development Rules and Guidelines

Overview

This document provides comprehensive rules, guidelines, and best practices for developing Model Context Protocol (MCP) servers, based on the official MCP specification and the Apache Airflow MCP server implementation.

Core MCP Concepts

1. MCP Server Capabilities

MCP servers can provide three main types of capabilities:

  1. Resources: File-like data that can be read by clients (like API responses or file contents)
  2. Tools: Functions that can be called by the LLM (with user approval)
  3. Prompts: Pre-written templates that help users accomplish specific tasks

2. Architecture Principles

  • Stateless Design: Servers should be stateless and handle each request independently
  • Standard Transport: Use stdio or SSE transport protocols as defined in the MCP specification
  • Type Safety: Leverage Python type hints for automatic tool definition generation
  • Async First: Use asynchronous programming patterns for better performance

Development Guidelines

1. Project Structure

Follow this recommended project structure:

project-root/
├── src/
│   ├── __init__.py
│   ├── __main__.py
│   ├── main.py              # CLI entry point
│   ├── server.py            # FastMCP server instance
│   ├── enums.py             # Project enums
│   ├── envs.py              # Environment configuration
│   └── [domain]/            # Domain-specific modules
│       ├── __init__.py
│       ├── client.py        # External API client setup
│       └── [feature].py     # Feature-specific tool implementations
├── pyproject.toml
├── README.md
├── Makefile
└── @modelcontextprotocol.mdc  # This file

2. Tool Implementation Standards

Tool Function Signature

All tool functions must follow this pattern:

from typing import Any, List, Optional, Union
import mcp.types as types

async def tool_name(
    required_param: str,
    optional_param: Optional[str] = None
) -> List[Union[types.TextContent, types.ImageContent, types.EmbeddedResource]]:
    """
    Brief description of what the tool does.
    
    Args:
        required_param: Description of required parameter
        optional_param: Description of optional parameter
    
    Returns:
        List of MCP content types
    """
    # Implementation here
    return [types.TextContent(type="text", text=str(result))]

Read the full file on GitHub · 445 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 · 445 lines · 0 tokens per session scan A b975abd54854

Subscribe to this mod's changes

modelcontextprotocol is a cursor rule published in the GitHub repository fastmcp-me/mcp-server-apache-airflow (0 stars, last pushed 10mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,511 tokens. A static security scan graded it A with 1 finding (makes network calls). It is 100% identical to modelcontextprotocol, differing in 0 lines, and is treated as a copy.