mcp

mcp is a cursor rule for Cursor from PrinceGupta1999/graylog-mcp. It costs 2,600 tokens per session, scanned A, a copy of mcp, MIT.

A TypeScript software kit for building MCP clients and servers. MCP, or Model Context Protocol, is a standard format for connecting AI applications with tools, information, and reusable prompts.

In plain words
What is it for?
Creating MCP servers and clients, exposing tools and resources, and connecting them through standard transports such as local process communication or server-sent events.
Why use it?
It removes the need to design the connection and message-handling rules from scratch when building an MCP integration.

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/princegupta1999/graylog-mcp/mcp
Clone the repo
git clone --depth 1 https://github.com/PrinceGupta1999/graylog-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/princegupta1999/graylog-mcp/mcp.svg)](https://agentmods.dev/rules/princegupta1999/graylog-mcp/mcp)
Your own site
<a href="https://agentmods.dev/rules/princegupta1999/graylog-mcp/mcp"><img src="https://agentmods.dev/badge/rules/princegupta1999/graylog-mcp/mcp.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,600 This file is loaded in full into every session.
When invoked 2,600 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin 91% 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.02600 $0.02600
Opus 5 $0.01300 $0.01300
Sonnet 5 $0.00520 $0.00520
Haiku 4.5 $0.00260 $0.00260

Measured 3d ago against content hash c1fa8b794eba, 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.

Origin

This is a copy

91% identical to mcp — 8 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/mcp.mdc · 466 lines

How it starts

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

Overview

The Model Context Protocol allows applications to provide context for LLMs in a standardized way, separating the concerns of providing context from the actual LLM interaction. This TypeScript SDK implements the full MCP specification, making it easy to:

  • Build MCP clients that can connect to any MCP server
  • Create MCP servers that expose resources, prompts and tools
  • Use standard transports like stdio and SSE
  • Handle all MCP protocol messages and lifecycle events

Full Example

import { McpServer, ResourceTemplate } from "@modelcontextprotocol/sdk/server/mcp.js";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
import { z } from "zod";

// Create an MCP server
const server = new McpServer({
  name: "Demo",
  version: "1.0.0"
});

// Example: Add a BMI calculator
server.tool(
  // tool name
  "calculate_bmi",
  // description
  "Calculate BMI to see if you are overweight.",
  // input schema
  {
    height: z.number().describe("Height in cm"),
    weight: z.number().describe("Weight in kg"),
  },
  // tool implementation
  async ({ height, weight }) => ({
    content: [{ type: "text", text: String(weight / (height * height)) }],
  }),
);

// Add a dynamic greeting resource
server.resource(
  "greeting",
  new ResourceTemplate("greeting://{name}", { list: undefined }),
  async (uri, { name }) => ({
    contents: [{
      uri: uri.href,
      text: `Hello, ${name}!`
    }]
  })
);

// Start receiving messages on stdin and sending messages on stdout
const transport = new StdioServerTransport();
await server.connect(transport);

What is MCP?

The Model Context Protocol (MCP) lets you build servers that expose data and functionality to LLM applications in a secure, standardized way. Think of it like a web API, but specifically designed for LLM interactions. MCP servers can:

  • Expose data through Resources (think of these sort of like GET endpoints; they are used to load information into the LLM's context)
  • Provide functionality through Tools (sort of like POST endpoints; they are used to execute code or otherwise produce a side effect)
  • Define interaction patterns through Prompts (reusable templates for LLM interactions)
  • And more!

Read the full file on GitHub · 466 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 · 466 lines · 2,600 tokens per session scan A c1fa8b794eba

Subscribe to this mod's changes

mcp is a cursor rule published in the GitHub repository PrinceGupta1999/graylog-mcp (1 stars, last pushed 2mo ago), licensed MIT. It adds 2,600 tokens to every session, about $0.0130 per session on Opus 5. A static security scan graded it A with 0 findings. It is 91% identical to mcp, differing in 8 lines, and is treated as a copy.