mcp AGENTS.md

Instructions for developing the Space Frontiers MCP server, a service that searches academic papers, books, patents, Wikipedia, Reddit, Telegram, and YouTube transcripts. MCP is a standard way for AI tools to call external services.

In plain words
What is it for?
Use them when working on the server, its search tools, authentication, API client, prompts, or registry configuration.
Why use it?
They give contributors the server's purpose, file layout, development conventions, and the behavior of its read-only search tools.

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

Made for: Codex, OpenCode.

Per session 679 This file is loaded in full into every session.
When invoked 679 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.00679 $0.00679
Opus 5 $0.00340 $0.00340
Sonnet 5 $0.00136 $0.00136
Haiku 4.5 $0.00068 $0.00068

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

Security

Grade A, and why

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 2d 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 · 55 lines

How it starts

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

AGENTS.md — Space Frontiers MCP server

This is the source for the Space Frontiers MCP server, deployed at https://mcp.spacefrontiers.org/.

What it does

Exposes four read-only, idempotent tools that wrap the Space Frontiers search API:

  • spacefrontiers_search_documents — peer-reviewed papers, books, patents, Wikipedia
  • spacefrontiers_search_social — Reddit, Telegram channels, YouTube transcripts
  • spacefrontiers_fetch_document — full text + references for one canonical URI
  • spacefrontiers_search_in_document — passages within one document by query

All tool returns are typed Pydantic models — outputSchema and structuredContent are auto-generated by FastMCP. Every result carries a canonical source_uri for citation.

Layout

  • mcp_server.py — Starlette + FastMCP entrypoint, OAuth well-known endpoints.
  • tools.py — tool definitions and Pydantic output schemas.
  • prompts.pydeep_research_agent prompt.
  • auth.py — Bearer-token validation against users-api, Origin allowlist, MCP-Protocol-Version allowlist.
  • client.py — async HTTP client for the v2 search API.
  • server.json — entry for the Official MCP Registry (registry.modelcontextprotocol.io).
  • smithery.yaml — Smithery deployment config.
  • registry.json — legacy in-house registry metadata.
  • tests/ — pytest unit tests for each tool.

Local dev

uv sync
uv run pytest
uv run fastmcp run mcp_server.py

The hosted endpoint expects Authorization: Bearer <key> and validates the token against users-api. Stdio/self-hosted use reads SPACE_FRONTIERS_API_KEY for upstream API authentication.

Conventions

  • Python 3.10+. Single quotes (ruff format). Type hints everywhere.
  • All tool descriptions follow the "Use when / Do not use when / Examples" template; lead with verb + scope.
  • Every tool has readOnlyHint: true and idempotentHint: true annotations — required for the Anthropic Connectors Directory.
  • Tool names are prefixed spacefrontiers_ to avoid collisions in multi-server agent setups.
  • The MCP spec versions this server speaks are listed in auth.py:SUPPORTED_PROTOCOL_VERSIONS. Bump there when adopting a new revision.

Read the full file on GitHub · 55 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. 2d ago First seen · 55 lines · 679 tokens per session scan A 3648ff18eb9f

Subscribe to this mod's changes

mcp AGENTS.md is an instructions file published in the GitHub repository SpaceFrontiers/mcp (11 stars, last pushed 1mo ago), licensed MIT. It adds 679 tokens to every session, about $0.0034 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-30.