rcsb-mcp AGENTS.md

rcsb-mcp AGENTS.md is an instructions file for Codex, OpenCode from rcsb/rcsb-mcp. It costs 1,495 tokens per session, scanned A, original, MIT.

A set of repository instructions for working on rcsb-mcp, a server that lets an AI query 3D protein structures in the Protein Data Bank through RCSB APIs.

In plain words
What is it for?
Use it when changing the server, query builders, search-attribute catalogs, prompts, or their network-free tests.
Why use it?
It gives coding agents the repository layout, design boundaries, development workflow, and syntax-check guidance in one place.

Instructions file for CodexOpenCode

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 instructions/rcsb/rcsb-mcp/agents-md
Clone the repo
git clone --depth 1 https://github.com/rcsb/rcsb-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 rcsb-mcp AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/rcsb/rcsb-mcp/agents-md.svg)](https://agentmods.dev/instructions/rcsb/rcsb-mcp/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/rcsb/rcsb-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/rcsb/rcsb-mcp/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,495 This file is loaded in full into every session.
When invoked 1,495 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.01495 $0.01495
Opus 5 $0.00747 $0.00747
Sonnet 5 $0.00299 $0.00299
Haiku 4.5 $0.00150 $0.00150

Measured 5d ago against content hash a42de66a1d4c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

rcsb-mcp 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 5d 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 · 110 lines

How it starts

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

AGENTS.md — working on the rcsb-mcp repo

Guidance for AI coding agents (and humans) modifying this repository. This is an MCP server that lets an LLM interrogate Protein Data Bank structures across three RCSB APIs: Search (REST), Data (GraphQL), and Sequence Coordinates (GraphQL).

The runtime assistant persona and output format are not here — they live in src/rcsb_mcp/prompts/pdb_assistant.md, served over MCP as the pdb_assistant prompt (see "Two layers" below). Keep that split.

Layout

src/rcsb_mcp/
  server.py                  MCP server: @mcp.tool() tools, the @mcp.prompt() persona, HTTP calls, schema introspection
  queries.py                 PURE request-body builders (no network) + the DATA_OBJECTS registry
  search_attributes.py       SEARCH_ATTRIBUTES catalog (structure search schema)
  chemical_search_attributes.py  CHEMICAL_SEARCH_ATTRIBUTES catalog — auto-generated (see scripts/)
  prompts/pdb_assistant.md   Assistant persona + HTML-report format; served as the `pdb_assistant` MCP prompt (package data)
tests/
  test_queries.py            Network-free unit tests for the query builders
  test_server.py             Network-free tests for non-builder server logic (schema flatten), via a synthetic schema

Architecture & conventions

  • Pure builders vs. I/O. queries.py builds request bodies and contains no network code, so it stays unit-testable. server.py does the HTTP and exposes the tools. Keep new query-construction logic in queries.py.
  • The DATA_OBJECTS registry (queries.py) drives every Data API rcsb_get_* tool: one entry per GraphQL root field (root field, id arg, batch/single, default field selection). Adding a Data API object is ideally a one-line registry entry.
  • Compact defaults + fields= overrides. Each rcsb_get_*/rcsb_seqcoord_* tool returns a curated compact field selection but accepts a fields= override; rcsb_describe_data_object (browse a level, drill in with into=, or keyword-search the schema with query= + max_depth=) and rcsb_describe_seqcoord_object introspect the live schema for field discovery. There is no raw-GraphQL passthrough tool any more: everything goes through a typed tool's fields=. Don't try to make defaults exhaustive — and don't invent fields= paths; discover them against the live schema first.
  • Server instructions = tool-usage guidance only (routing, chaining, return types). Do not put application/presentation policy there — it's always-on for every client. That belongs in the project prompt.

Read the full file on GitHub · 110 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. 5d ago First seen · 110 lines · 1,495 tokens per session scan A a42de66a1d4c

Subscribe to this mod's changes

rcsb-mcp AGENTS.md is an instructions file published in the GitHub repository rcsb/rcsb-mcp (3 stars, last pushed 18d ago), licensed MIT. It adds 1,495 tokens to every session, about $0.0075 per session on Opus 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

Other instructions, from other repositories

bio-gene-to-reference-tree copilot-instructions.md

Copilot instructions for Hongda-Zhao/bio-gene-to-reference-tree, a project described as: Auditable agent skill for resolving protein queries, selecting references, and planning reproducible phylogenetic trees.

Hongda-Zhao/bio-gene-to-reference-tree · 105 tokens

braina GEMINI.md

Instructions for brainets/braina, covering project: braina (brain interaction analysis), 1. project context & purpose, 2. commands, verify environment (all core dependencies) and run the verification test suite for frites + hoi.

brainets/braina · 1,269 tokens

research-automation CLAUDE.md

Instructions for lucafusarbassini/research-automation, covering ricet - research automation framework, project overview, claude-flow mcp, workflow habits and file organization.

lucafusarbassini/research-automation · 904 tokens

shannon-prover CLAUDE.md

Claude Code instructions for SkyShannonProver/shannon-prover, covering shannon prover: claude entry point, current boundary, easycrypt environment, eval safety and current documentation.

SkyShannonProver/shannon-prover · 586 tokens

SciCrucible CLAUDE.md

Claude Code instructions for Xinyang-Li666/SciCrucible, covering 科学知识库, 知识库结构, 可用命令, 项目目录 and 工作原则.

Xinyang-Li666/SciCrucible · 1,107 tokens

torchcell CLAUDE.md

Claude Code instructions for Mjvolk3/torchcell, covering vision -- the virtual cell (north star), for local configs, git worktrees, programming guide and provenance & reproducibility.

Mjvolk3/torchcell · 12,957 tokens