loading…
Search for a command to run...
loading…
Automatically generates Postman collections from code directories by analyzing API endpoints and parameters, enabling easy testing, documentation, and sharing.
Automatically generates Postman collections from code directories by analyzing API endpoints and parameters, enabling easy testing, documentation, and sharing.
Code2Postman MCP - A Model Context Protocol (MCP) server implementation that automatically converts code directories into Postman collections.
Code2Postman MCP is an open-source tool that leverages the Model Context Protocol to help developers quickly generate Postman collections from their codebase. This tool analyzes your code files, identifies API endpoints, and creates structured Postman collections that you can use for testing, documentation, and sharing. It is an MCP that generate postman's collection from code and local repositories.
create_postman_collection - Create a new Postman collectionadd_postman_collection_item - Add a request item to a collectionread_postman_collection - Read an existing Postman collectionadd_postman_collection_info - Add metadata to a collectionadd_postman_collection_event - Add pre-request or test scriptsadd_postman_collection_variable - Add variables to a collectionadd_postman_collection_auth - Configure authentication for a collectionadd_postman_collection_protocol_behavior - Configure protocol behaviorsdelete_postman_collection_item - Remove items from a collectionupdate_postman_collection_variable - Update existing variablesadd_postman_collection_folder - Create folders for organizing requestsadd_item_to_folder - Add items to specific foldersget_tree_directory_from_path - Get a file tree structure from a directoryread_file - Read the contents of a specific filepip install code2postman-mcp
claude_desktop_config.json file:"code2postman-mcp": {
"command": "uvx",
"args": ["code2postman-mcp"]
}
You can also use Code2Postman MCP directly from the command line:
uvx code2postman-mcp
You can also extend existing Postman collections by:
To contribute to Code2Postman MCP:
Clone the repository:
git clone https://github.com/yourusername/code2postman-mcp.git
Install development dependencies:
cd code2postman-mcp
uv pip install -e .
Run tests:
uv run pytest tests/
This project is licensed under the MIT License - see the LICENSE file for details.
Run in your terminal:
claude mcp add code2postman-mcp -- npx Security
Low riskAutomated heuristic from public metadata — not a security guarantee.