polish-academic-mcp: Instructions file for Codex

AGENTS.md

polish-academic-mcp AGENTS.md is an instructions file for Codex, OpenCode from asterixix/polish-academic-mcp. It costs 3,766 tokens per session, scanned A, original, MIT.

Repository instructions for a local MCP server that searches Polish academic, public, and cultural databases. It exposes these databases to AI assistants through standard tool calls.

In plain words
What is it for?
Use them when adding search tools, changing request handling, working with PBN authentication, or developing the Node.js package.
Why use it?
They explain the current architecture, access requirements, rate limiting, and project layout, reducing errors when extending the server.

Instructions file for CodexOpenCode

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

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

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import type { Env } from "../types.js";.

Reuse

Borrowing it

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

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 polish-academic-mcp AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/asterixix/polish-academic-mcp/agents-md.svg)](https://agentmods.dev/instructions/asterixix/polish-academic-mcp/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/asterixix/polish-academic-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/asterixix/polish-academic-mcp/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,766 This file is loaded in full into every session.
When invoked 3,766 The same file — it is already loaded in full.
Security scan A 1 finding. 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.03766 $0.03766
Opus 5 $0.01883 $0.01883
Sonnet 5 $0.00753 $0.00753
Haiku 4.5 $0.00377 $0.00377

Measured 7d ago against content hash ff4f9a627d86, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

polish-academic-mcp AGENTS.md 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 7d 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.

Makes network callslowCapability

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

async fetch(request, env, ctx) {
AGENTS.md · 357 lines

How it starts

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

AGENTS.md — AI Coding Agent Reference

This file is written for AI coding agents (GitHub Copilot, Claude, Cursor, etc.). It describes the codebase architecture, conventions, and step-by-step instructions for extending the server so that agents can work autonomously without guessing.


Project overview

polish-academic-mcp is a local MCP server (Model Context Protocol) that exposes 85 tools letting any MCP-compatible LLM (Claude, GPT-4, etc.) search Polish academic, public, and cultural databases. It runs as a local Node.js process communicating via stdio, distributed exclusively through npm as the polish-academic-mcp package. All databases offer unauthenticated read access except for the three PBN tools (require PBN_APP_ID + PBN_APP_TOKEN).

This file describes the v1.1.0 architecture (npm-only, local stdio). Historical sections that reference Cloudflare Workers, MCPB bundles, or research evaluation apparatus are obsolete and have been removed; if you see references to those in the wild, treat them as out of date.

For the complete tool catalogue (85 entries with Polish descriptions) see README.md. For per-client configuration snippets see docs/CLIENTS.md. For AI agents that need to configure the server themselves see docs/AGENT-GUIDE.md.


File map

package.json           npm-only distribution; entry "bin": { "polish-academic-mcp": "dist/index.js" }
                       engines: "node": ">=18"; no MCPB; no eval; no telemetry deps

src/
├── index.ts           Stdio entry: --help, --version, MCP dispatch (creates fresh McpServer per request)
├── server.ts          createServer(env) — registers all 85 tools
├── cache.ts           in-process TTL cache + 30s timeout + single retry on transient errors
├── tool-error-handling.ts   structured error classification without OTel
├── types.ts           Env interface (BDL_CLIENT_ID, PBN_APP_ID, PBN_APP_TOKEN optional)
└── tools/             33 files, one per database / source
    ├── biblioteka-nauki.ts  → bn_search_publications, bn_search_articles, bn_get_article
    ├── ruj.ts               → ruj_search, ruj_get_item
    ├── agh.ts               → agh_search, agh_get_item
    ├── amu.ts               → amu_search, amu_get_item
    ├── uafm.ts              → uafm_search, uafm_get_item   (currently: HTTP 404 from eRIKA)
    ├── icm.ts               → icm_search, icm_get_item
    ├── rodbuk.ts            → rodbuk_search
    ├── repod.ts             → repod_search, repod_get_dataset
    ├── dane.ts              → dane_search, dane_get_dataset
    ├── polon.ts             → polon_search
    ├── pbn.ts               → pbn_search_publications, pbn_search_persons, pbn_get_publication
    ├── bdl.ts               → bdl_search_subjects, bdl_search_variables, bdl_search_units,
    │                          bdl_get_variable, bdl_get_data_by_variable, bdl_get_data_by_unit
    ├── imgw.ts              → imgw_synop, imgw_hydro, imgw_meteo, imgw_warnings
    ├── pkn.ts               → pkn_search
    ├── wiedza.ts            → wiedza_search_norms, wiedza_get_standard
    ├── blz.ts               → blz_search, blz_get_listing, blz_listing_categories
    ├── baztol.ts            → baztol_search, baztol_browse_domain, baztol_get_resource
    ├── nac.ts               → nac_news_rss, nac_site_search, nac_get_post, nac_get_page
    ├── sum.ts               → sum_aleph_find, sum_aleph_present
    ├── ludzie-nauki.ts      → ludzie_search, ludzie_semantic_search, ludzie_get_scientist
    ├── pauart.ts            → pauart_search, pauart_get_artwork
    ├── isap.ts              → isap_search_acts, isap_get_act
    ├── sejm-bs.ts           → bs_sejm_search, bs_sejm_get_item
    ├── saos.ts              → saos_search_judgments, saos_get_judgment, saos_dump_services,
    │                          saos_dump_common_courts, saos_dump_sc_chambers,
    │                          saos_dump_judgments, saos_dump_enrichments
    ├── wolne-lektury.ts     → wolnelektury_list_taxonomy, wolnelektury_filter_books,
    │                          wolnelektury_get_book, wolnelektury_get_collection
    ├── ninateka.ts          → ninateka_search, ninateka_get_vod
    ├── gapla.ts             → gapla_search, gapla_get_poster
    ├── fototeka.ts          → fototeka_search, fototeka_get_photo
    ├── filmpolski.ts        → filmpolski_search, filmpolski_get_record
    ├── fototekaslaska.ts    → fototekaslaska_search, fototekaslaska_get_gallery
    ├── filmoteka-repo.ts    → fn_repo_search, fn_repo_get_node, fn_repo_film_index, fn_repo_browse_kind
    ├── rcin.ts              → rcin_search, rcin_get_record
    └── dokumenty-slaska.ts  → dokumenty_slaska_get_page, dokumenty_slaska_medieval_catalog

tests/
├── package-contract.test.ts   version, --help, --version, npm-only, no MCPB / eval / telemetry
├── mcp-contract.test.ts       85 tool IDs stable, all tool + parameter descriptions in Polish
└── fetch-policy.test.ts       30s timeout, single retry on transient, no retry on 4xx

scripts/
└── smoke-tools.ts             live smoke (82 tools + 5 dynamic search→get pairs)

tsconfig.json          TypeScript config (strict, module: ES2022, target: ES2022)
docs/
├── CLIENTS.md         per-client MCP configuration snippets
├── AGENT-GUIDE.md     prompt for AI agents configuring the server
└── plans/             implementation plans

Read the full file on GitHub · 357 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. 7d ago First seen · 357 lines · 3,766 tokens per session scan A ff4f9a627d86

Subscribe to this mod's changes

polish-academic-mcp AGENTS.md is an instructions file published in the GitHub repository asterixix/polish-academic-mcp (4 stars, last pushed 1mo ago), licensed MIT. It adds 3,766 tokens to every session, about $0.0188 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens