Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@README Generator MCP Servergenerate a README for my Node.js project in the current directory"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
README Generator MCP Server
π Description
A Model Context Protocol (MCP) server that enables LLMs to automatically analyze project structures and generate comprehensive, well-formatted README files. This server provides intelligent project analysis, technology detection, and README generation capabilities that help developers quickly create professional documentation.
π οΈ Technologies Used
Node.js
TypeScript
MCP SDK (@modelcontextprotocol/sdk)
β¨ Features
Automatic Technology Detection: Identifies Node.js, TypeScript, Python, Rust, Go, Java, Docker, and more
Smart Project Analysis: Extracts metadata from package.json, dependencies, scripts, and configuration files
Directory Structure Scanning: Recursive traversal with configurable depth and intelligent ignore patterns
Rich README Generation: Creates professional READMEs with badges, emojis, proper sections, and code blocks
Flexible Template System: Predefined structure with required and optional sections
Multi-language Support: Works with various programming languages and frameworks
π¦ Installation
npm installπ§ Setup
1. Build the server
npm run build2. Configure Claude Desktop
Add this server to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"readme-generator": {
"command": "node",
"args": ["/absolute/path/to/mcp/build/index.js"]
}
}
}3. Restart Claude Desktop
After adding the configuration, restart Claude Desktop to load the MCP server.
Claude Code CLI
To add this MCP server to Claude Code CLI:
# With node (after build)
claude mcp add readme-generator --scope user -- node <path-to-project>/build/index.js
# With npx and TypeScript (development mode)
claude mcp add readme-generator --scope user -- npx -y tsx <path-to-project>/src/index.tsReplace <path-to-project> with the absolute path to this MCP server.
Scope options:
--scope user: Available in all your projects (recommended)--scope project: Shared with everyone in the project via.mcp.json--scope local: Only for the current project
Useful commands:
claude mcp list # Show all configured servers
claude mcp remove readme-generator # Remove the server
/mcp # Show server status in Claude CodeGemini CLI
To add this MCP server to Gemini CLI, edit the configuration file:
File location: ~/.config/gemini/settings.json
Add the server configuration:
{
"mcpServers": {
"readme-generator": {
"command": "node",
"args": ["<path-to-project>/build/index.js"]
}
}
}Replace <path-to-project> with the absolute path to this MCP server.
Alternative with TypeScript (development mode):
{
"mcpServers": {
"readme-generator": {
"command": "npx",
"args": ["-y", "tsx", "<path-to-project>/src/index.ts"]
}
}
}π Usage
Available Scripts
npm run buildCompiles TypeScript and makes the output executable
npm run watchWatches for changes and recompiles automatically
npm run prepareRuns build automatically before npm publish
Available MCP Tools
The server provides four tools for LLMs:
1. read_project_structure
Reads the directory structure of a project and returns a tree-like structure.
Example:
{
"path": "/home/user/my-project",
"maxDepth": 3
}2. read_file
Reads the contents of a specific file.
Example:
{
"path": "/home/user/my-project/package.json"
}3. analyze_project
Analyzes a project directory and returns structured data including detected technologies, dependencies, scripts, and directory structure.
Example:
{
"projectPath": "/home/user/my-project"
}4. generate_readme
Automatically generates a complete, professional README.md file for a project.
Example:
{
"projectPath": "/home/user/my-project"
}π‘ Usage Examples
Quick README Generation
Once the MCP server is configured in Claude Desktop, simply ask:
"Generate a README for my project at /home/user/my-awesome-app"The server will:
Analyze the project directory
Detect technologies (Node.js, Python, Rust, etc.)
Extract metadata from configuration files
Generate a professional README with appropriate sections
Detailed Project Analysis
For more control over the process:
"Analyze the project at /home/user/my-awesome-app and show me what you found"Review the analysis, then request:
"Now generate a README emphasizing the API documentation and deployment sections"Step-by-Step Workflow
For complex projects requiring customization:
Explore the structure:
"Read the project structure of /home/user/my-app with depth 4"Review specific files:
"Read the package.json and show me the available scripts"Get comprehensive analysis:
"Analyze the entire project and tell me what technologies you detected"Generate customized README:
"Create a README with extra focus on the testing and contribution guidelines"
Real-World Example
User: "I have a TypeScript Express API project at /home/user/projects/api-server.
Can you create a README for it?"
Claude: [Uses the MCP server to analyze the project]
"I've analyzed your project and found:
- TypeScript with Express.js
- PostgreSQL database integration
- Jest for testing
- Docker configuration
I'll create a comprehensive README with sections for setup,
API endpoints, database configuration, and deployment."The generated README will automatically include:
Proper badges for TypeScript, Node.js, etc.
Installation instructions based on package.json
All available npm scripts with descriptions
Project structure visualization
Dependencies and dev dependencies
API usage examples (if detected)
Docker deployment instructions (if Dockerfile exists)
π Project Structure
mcp/
package-lock.json
package.json
src/
index.ts
tsconfig.jsonπ¨ Customization
Modify the README Template
Edit the README_TEMPLATE in src/index.ts:12-66 to customize sections:
const README_TEMPLATE = {
sections: [
{
name: "Project Title",
description: "The main title/name of the project",
required: true,
},
{
name: "Your Custom Section",
description: "Description of what this section should contain",
required: false,
},
// Add more sections as needed
],
};Add Technology Detection
Extend the analyzeProject function in src/index.ts:126-214 to detect additional frameworks:
if (files.includes("docker-compose.yml")) {
detectedTechnologies.push("Docker Compose");
configFiles.push("docker-compose.yml");
}After making changes, rebuild:
npm run buildπ Dependencies
@modelcontextprotocol/sdk
π§ Dev Dependencies
@types/node
typescript
π How It Works
Project Scanning: Recursively reads the project directory (ignoring node_modules, .git, dist, build)
Technology Detection: Identifies technologies based on config files (package.json, tsconfig.json, Cargo.toml, etc.)
Metadata Extraction: Pulls information from package.json including scripts, dependencies, author, license
Template Application: Uses a predefined template structure with required and optional sections
README Generation: Creates a formatted README with badges, proper sections, code blocks, and professional styling
π€ Contributing
Contributions are welcome! To contribute:
Fork the repository
Create a feature branch:
git checkout -b feature/my-featureMake your changes and test them
Commit your changes:
git commit -m 'Add my feature'Push to the branch:
git push origin feature/my-featureSubmit a pull request
π License
This project is licensed under the ISC License.
This README was generated using the README Generator MCP Server itself! π
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.