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 4,375 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/github.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/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 polish-academic-mcp AGENTS.md

Your own site · 80×15
<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="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,375 This file is loaded in full into every session.
When invoked 4,375 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.04375 $0.04375
Opus 5.5 $0.01750 $0.01750
Sonnet 5.5 $0.00875 $0.00875
Haiku 4.5 $0.00438 $0.00438

Measured 4d ago against content hash 90ab04d6b453, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-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 4d 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 · 393 lines

How it starts

The opening of the file, as written. The whole thing — 393 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 125 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 (125 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, --list-sources, setup/uninstall/doctor
│                      dispatch, --sources / POLISH_ACADEMIC_SOURCES, then the MCP transport
├── server.ts          createServer(env, { sources }) — registers the selected sources (default:
│                      all 125 tools), MCP instructions, readOnlyHint/openWorldHint on every tool
├── sources.ts         catalogue of 33 sources in 5 groups (nauka, dane, prawo, normy, kultura)
│                      + parseSourceSelection()
├── clients.ts         MCP client catalogue for setup: config paths per OS, entry formats,
│                      JSON/TOML config edits (pure functions over a HostContext)
├── cli.ts             setup / uninstall wizard, doctor, --list-sources, --help text
├── cache.ts           in-process TTL cache + 30s timeout + single retry on transient errors;
│                      POLISH_ACADEMIC_DEBUG=1 logs every request to stderr
├── 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_item
    ├── fototekaslaska.ts    → fototekaslaska_search, fototekaslaska_get_photo
    ├── 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       125 tool IDs stable, all tool + parameter descriptions in Polish
├── fetch-policy.test.ts       30s timeout, single retry on transient, no retry on 4xx
├── sources.test.ts            source selection, catalogue ↔ tool prefixes, filtered server
└── setup.test.ts              client config paths per OS, JSON/TOML edits, setup CLI end-to-end

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 (what `setup` writes + manual steps)
├── AGENT-GUIDE.md     prompt for AI agents configuring the server (uses `setup --yes`)
├── CLOUDFLARE.md      remote Workers+Pages (OAuth 2.1, AI Search, connectors)
└── plans/             implementation plans

cloud/                optional Cloudflare Workers + Static Assets (separate package.json).
                       Shares src/tools/* via tool-bridge; not part of the npm CLI package.
                       OAuth 2.1 (/mcp), ORCID/email/passkey, D1 quotas, AI Gateway Haiku.
                       See docs/CLOUDFLARE.md.

Read the full file on GitHub · 393 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. 4d ago Changed 90ab04d6b453
  2. 5d ago Changed · +6 lines · +95 tokens per session afa848451770
  3. 28d ago Changed · +30 lines · +514 tokens per session 75cb015f443c
  4. 1mo 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 4d ago), licensed MIT. It adds 4,375 tokens to every session, about $0.0175 per session on Opus 5.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

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 · 9,649 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,549 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, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 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,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens