mcp-server: Instructions file for Codex

AGENTS.md

mcp-server AGENTS.md is an instructions file for Codex, OpenCode from madelponte/mcp-server. It costs 5,727 tokens per session, scanned A, original, MIT.

Repository instructions for coding agents working with a server that provides web search, page fetching, stock data, Wolfram Alpha, map searches, and send-only email. They describe how to run it over a network or locally without network access or authentication.

In plain words
What is it for?
Running the server locally, switching between its network and local modes, and understanding its tool groups.
Why use it?
They give an agent the commands and operating rules needed to work on and run the repository correctly.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

This is madelponte/mcp-server's own configuration. It tells Codex and OpenCode how to work on mcp-server itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mcp-server configures →

Reuse

Borrowing it

Nothing to install: this file belongs to madelponte/mcp-server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/madelponte/mcp-server/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/madelponte/mcp-server

Made for: Codex, OpenCode.

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-server AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/madelponte/mcp-server/agents-md/github.svg)](https://agentmods.dev/instructions/madelponte/mcp-server/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/madelponte/mcp-server/agents-md"><img src="https://agentmods.dev/badge/instructions/madelponte/mcp-server/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mcp-server AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/madelponte/mcp-server/agents-md"><img src="https://agentmods.dev/badge/instructions/madelponte/mcp-server/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5,727 This file is loaded in full into every session.
When invoked 5,727 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.05727 $0.05727
Opus 5.5 $0.02291 $0.02291
Sonnet 5.5 $0.01145 $0.01145
Haiku 4.5 $0.00573 $0.00573

Measured 9d ago against content hash 2d95aad6812f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mcp-server AGENTS.md 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 9d 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.

AGENTS.md · 108 lines

How it starts

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

AGENTS.md

Repository guidance for coding agents and contributors.

What this is

A single FastMCP v4 server that bundles five tool groups — Agentic Web Search (the search_web and fetch_page tools, where fetch_page also returns YouTube video transcripts), Stock Data, Wolfram Alpha, Geocoding & Place Search (OpenStreetMap Nominatim + Overpass), and Email (send_email, send-only SMTP) — originally written as Open WebUI tools and ported to MCP. Default transport is streamable-http, reachable at http://<host>:8000/mcp.

Configuration is one YAML file (config.example.yaml documents every key; config.yaml is the gitignored live copy, bind-mounted at /app/config.yaml in the container), with the legacy per-setting environment variables still working as an override layer on top of it.

The web tool group has two registered modules, tools/web_search.py and tools/fetch_page.py, plus helpers. tools/web_fetch.py owns SSRF-guarded provider transports, streamed direct-resource probing, Tika extraction, and the raw page cache. tools/page_acquire.py owns fetch_page's browser-first acquisition policy (FlareSolverr, quality assessment, optional hedged Firecrawl, and the host circuit breaker); tools/page_quality.py contains the deterministic quality gate and optional OpenAI-compatible classifier. tools/web_extract.py contains pure HTML→content helpers: markdown/plain-text rendering, structured metadata, single-section extraction, and reference-link resolution — [12]-style in-page citation markers are rewritten to their footnote's external source URL so a model can follow a page's references; the structured description falls back to JSON-LD and toc is the heading outline.

YouTube transcript retrieval used to be its own tool; it was folded into fetch_page (which detects a YouTube video URL and returns the transcript) so a model has one fewer tool to choose between. The logic still lives in tools/youtube_transcript.py, now exposed as the fetch_transcript / is_youtube_video_url helpers rather than a registered tool.

Read the full file on GitHub · 108 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. 9d ago Changed · +136 tokens per session 2d95aad6812f
  2. 22d ago Changed · -70 tokens per session 4874c7f66e16
  3. 1mo ago Changed · +2 lines · +154 tokens per session 7eaf32e43668
  4. 1mo ago Changed · +1 lines · +402 tokens per session b3dc5f62c08e
  5. 1mo ago Changed · +11 lines · +167 tokens per session be4a65f6ad56
  6. 2mo ago Changed · +10 lines · +762 tokens per session 2af29a24d63f
  7. 2mo ago Changed · +10 tokens per session ea777e3d0a7c
  8. 2mo ago Changed · +51 tokens per session 3df3d6dd91c9
  9. 2mo ago First seen · 84 lines · 4,115 tokens per session scan A 05d3de07d96a

Subscribe to this mod's changes

mcp-server AGENTS.md is an instructions file published in the GitHub repository madelponte/mcp-server (0 stars, last pushed today), licensed MIT. It adds 5,727 tokens to every session, about $0.0229 per session on Opus 5.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-31.

Related

mcp-server AGENTS.md compared with instructions from other repositories

mcp-server AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mcp-server AGENTS.mdmadelponte/mcp-serverInstructions file0todayMITA5,727Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,649GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot