mcp-server-anydoc: Instructions file for Codex

AGENTS.md

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

A set of instructions for a local MCP server that converts files such as PDFs, Word documents, spreadsheets, presentations, and ebooks into GitHub-Flavored Markdown, a text format commonly used in code repositories.

In plain words
What is it for?
Use it to convert supported documents on disk or supplied as Base64 data, list supported formats, and save large conversions as Markdown files.
Why use it?
It lets a coding agent read and batch-convert workspace documents without using a third-party document-parsing API. It does not handle scanned, image-only PDFs with OCR.

Instructions file for CodexOpenCode

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

This is ofershap/mcp-server-anydoc's own configuration. It tells Codex and OpenCode how to work on mcp-server-anydoc 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-anydoc configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ofershap/mcp-server-anydoc. 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/ofershap/mcp-server-anydoc/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/ofershap/mcp-server-anydoc

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/ofershap/mcp-server-anydoc/agents-md/github.svg)](https://agentmods.dev/instructions/ofershap/mcp-server-anydoc/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/ofershap/mcp-server-anydoc/agents-md"><img src="https://agentmods.dev/badge/instructions/ofershap/mcp-server-anydoc/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-anydoc AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/ofershap/mcp-server-anydoc/agents-md"><img src="https://agentmods.dev/badge/instructions/ofershap/mcp-server-anydoc/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 310 This file is loaded in full into every session.
When invoked 310 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.00310 $0.00310
Opus 5.5 $0.00124 $0.00124
Sonnet 5.5 $0.00062 $0.00062
Haiku 4.5 $0.00031 $0.00031

Measured 3mo ago against content hash 8dfeb9e308a7, 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-anydoc 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 3mo 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 · 52 lines

What it actually says

mcp-server-anydoc

Local MCP server for coding agents. Converts PDF, Word, PowerPoint, Excel, OpenDocument, RTF, EPUB, and CSV on disk to GitHub-Flavored Markdown using anydoc. No API key.

When to use

  • Agent needs contents of .docx / .pptx / .xlsx / PDF in the workspace
  • Batch convert office files to .md
  • Avoid third-party document parse APIs

Do not use as a replacement for attaching one PDF in a chat UI.

Install (agent instructions)

Prefer these exact commands:

claude mcp add anydoc -- npx -y mcp-server-anydoc
npx skills add ofershap/mcp-server-anydoc

Cursor / VS Code one-click links are in README.md.

MCP config:

{
  "mcpServers": {
    "anydoc": {
      "command": "npx",
      "args": ["-y", "mcp-server-anydoc"]
    }
  }
}

Tools

  • convert_document - { path, format?, output_path? }
  • convert_base64 - { content_base64, format?, filename? }
  • list_formats

For large files, always pass output_path and read sections from the written Markdown.

Limits

Not OCR. Scanned image-only PDFs fail.

Source

https://github.com/ofershap/mcp-server-anydoc

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. 3mo ago First seen · 52 lines · 310 tokens per session scan A 8dfeb9e308a7

Subscribe to this mod's changes

mcp-server-anydoc AGENTS.md is an instructions file published in the GitHub repository ofershap/mcp-server-anydoc (0 stars, last pushed 7d ago), licensed MIT. It adds 310 tokens to every session, about $0.0012 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-anydoc AGENTS.md compared with instructions from other repositories

mcp-server-anydoc AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mcp-server-anydoc AGENTS.mdofershap/mcp-server-anydocInstructions file07d agoMITA310Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,303GitHub Copilot
deno copilot-instructions.mddenoland/denoInstructions file109kyesterdayMITA3,077GitHub Copilot