AGENTS.md Generator logo

AGENTS.md Generator

Analyzes supported codebases with tree-sitter and prepares chunked context for generating AGENTS.md files.

Install AGENTS.md Generator

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "agents-md-generator": {
      "command": "uvx",
      "args": [
        "agents-md-generator"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 3 tools correctly ().

Overview

AGENTS.md Generator MCP server analyzes codebases with tree-sitter and prepares structured payloads for AI coding agents. Its tools can generate AGENTS.md writing context, scan a project for architectural information, and stream large results in chunks. Reach for it when an agent needs repository-specific architecture, commands, conventions, or testing guidance before editing code.

Use cases

  • Generate an AGENTS.md file from a project codebase
  • Scan a repository for architecture and data-flow context
  • Refresh agent instructions after source changes
  • Retrieve large analysis results through MCP chunks

Key features

  • Tree-sitter codebase analysis
  • Incremental scanning with cached symbols
  • AGENTS.md generation payloads
  • Standalone architectural context scans
  • Chunked payload retrieval
  • Support for Python, C#, TypeScript, JavaScript, and Go

Tools3

What AGENTS.md Generator lets your agent do. Expand a tool for its parameters.

Verified live~1.1k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

15/15 checks healthy over the last 84d

What it can do

From the 3 tools this server returned when we ran it; 3 declare their own safety hints.

Read-only tools · 3
Network at startup2 connections
Files written at startup17

Observed 2026-10-26 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 2h ago via OSV.dev · agents-md-generator (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars6Stargazers on the source repository.
Last commit1mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed3Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How AGENTS.md Generator works

What AGENTS.md Generator MCP server does

The AGENTS.md Generator MCP server examines a project and prepares information for an AI agent to create or update an AGENTS.md file. Analysis uses tree-sitter and currently covers Python, C#, TypeScript, JavaScript, and Go. The generated content follows the agents.md open standard and is intended as operational guidance for coding agents rather than human-facing project documentation.

Detected output can include the project’s technology stack, architectural layers, data flow, naming and import conventions, environment variables, setup commands, development workflows, tests, formatting or linting commands, and CI or deployment details. Empty sections are left out. The client, rather than the server, is responsible for writing the resulting AGENTS.md file.

How it works

generate_agents_md is the main workflow. It analyzes the selected project, includes instructions for producing the file in its payload, and returns directions for reading that payload in chunks. The project root defaults to the current directory, or can be supplied with project_path.

scan_codebase runs the analysis without instructions to generate an AGENTS.md. This makes it suitable for obtaining repository context for planning, review, questions, or another coding task. Set force_full_scan to true when the cached results should be ignored.

Both operations store serialized results for retrieval through read_payload_chunk. The client starts at chunk index zero and continues until has_more is false. Large payloads therefore do not need to be returned in a single MCP response.

Setup and configuration

The AGENTS.md Generator MCP server requires Python 3.11 or newer, Git, and an MCP-capable client. Install the package with pip and run its setup wizard, or use uvx without a prior package installation. The wizard can detect and configure Claude Code, Gemini CLI, Cursor, Windsurf, and Codex CLI, either globally or for an individual project.

A manual uvx registration uses the agents-md-generator command. Claude Code can register the same command with claude mcp add; its default scope is the current project, while a user scope can be selected explicitly.

Project-specific behavior can be narrowed through .agents-config.json, which is relevant for repositories that exceed scan time limits.

Tools and capabilities

  • generate_agents_md: analyzes a project and prepares the payload and writing instructions for AGENTS.md.
  • scan_codebase: returns analysis data without an AGENTS.md generation mandate.
  • read_payload_chunk: retrieves either tool’s stored payload incrementally.
  • Incremental scanning reuses cached results for unchanged git-tracked files and reparses files whose SHA-256 hash changed.
  • Modified files are reduced to changed public symbols; private symbols and test-file internals are excluded.
  • Scans run in a separate process with progress notifications and a five-minute timeout.

Limitations and notes

Only one scan per project can run at a time within a server instance. A serialized payload is limited to 300,000 characters; when analysis is reduced, the payload records the affected sections in metadata. Existing AGENTS.md content and writing instructions are preserved, but an error is returned if those alone exceed the limit.

If no source changes are found, the workflow asks whether the existing AGENTS.md should be improved. Generation can be retried after an interruption. Payload files are removed after their final chunk is read. The AGENTS.md Generator MCP server does not directly write the file; the connected client must use the returned content and instructions.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about AGENTS.md Generator

AGENTS.md Generator is an MCP server that connects codebases to AI coding agents through MCP and provides generate_agents_md, scan_codebase, and read_payload_chunk tools. It analyzes supported source files with tree-sitter, prepares repository context, and returns chunked instructions or data for generating AGENTS.md.

Install it with pip and run the setup wizard, or launch it with uvx. Use `pip install agents-md-generator` followed by `agents-md-generator setup`, or add `uvx agents-md-generator` to the MCP configuration for your client.

Yes, AGENTS.md Generator supports Cursor.

It handles large results by storing the payload and exposing it through `read_payload_chunk`. The client reads successive zero-based chunks until `has_more` is false, while unchanged files can reuse cached analysis from earlier scans.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewAGENTS.md Generator AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/agents-md-generator?style=directory)](https://allmcps.com/mcp/agents-md-generator)
HTML Embed
<a href="https://allmcps.com/mcp/agents-md-generator"><img src="https://allmcps.com/api/badge/agents-md-generator?style=directory" alt="AGENTS.md Generator on AllMCPs" /></a>