postman-lite-mcp
v1.0.4
Published
Model Context Protocol server for Postman API integration
Maintainers
Readme
Postman Lite MCP
A lightweight Model Context Protocol (MCP) server for Postman API integration. This server enables AI assistants like Claude to interact with the Postman API to manage collections, folders, requests, and responses.
🚦 Getting Started
⚙️ Prerequisites
- Node.js v16+
- npm
- A Postman API key (get one from Postman Account Settings)
📥 Installation
Via npm (recommended)
npm install -g postman-lite-mcpFrom source
git clone <repository-url>
cd postman-mcp
npm install
npm run build🚀 Usage
With Claude Desktop
Option 1: Using npx (simplest)
Add to your Claude Desktop configuration:
{
"mcpServers": {
"postman": {
"command": "npx",
"args": ["postman-lite-mcp", "--apikey=YOUR-POSTMAN-API-KEY"]
}
}
}Option 2: Using Claude MCP CLI
claude mcp add postman-lite-mcp --apikey=YOUR-POSTMAN-API-KEYOption 3: Global installation
After installing globally with npm:
{
"mcpServers": {
"postman": {
"command": "postman-lite-mcp",
"args": ["--apikey=YOUR-POSTMAN-API-KEY"]
}
}
}Configuration
The server requires a Postman API key which can be provided:
- As a command-line argument:
--apikey=YOUR-KEY - As an environment variable:
POSTMAN_PUBLIC_WORKSPACE_API_KEY - Per-tool basis: Each tool has an optional
apiKeyparameter that can be set individually
🛠️ Available Tools
The server provides the following tools for interacting with the Postman API:
Workspace Management
get_all_workspaces- Get all workspaces accessible to the user- Parameters:
type?,include?,apiKey?
- Parameters:
get_a_workspace- Get information about a specific workspace- Parameters:
workspaceId,apiKey?
- Parameters:
Collection Management
get_collection- Retrieve information about a collection- Parameters:
collectionId,access_key?,model?,apiKey?
- Parameters:
get_a_folder- Get details about a specific folder- Parameters:
collectionId,folderId,ids?,uid?,populate?,apiKey?
- Parameters:
Request Management
get_a_request- Retrieve request details- Parameters:
collectionId,requestId,ids?,uid?,populate?,apiKey?
- Parameters:
create_a_request- Create a new request with full configuration- Parameters:
collectionId,name,url,method?,description?,headers?, and more
- Parameters:
update_a_request- Update existing request- Parameters:
collectionId,requestId, plus any fields to update
- Parameters:
delete_a_request- Delete a request- Parameters:
collectionId,requestId,apiKey?
- Parameters:
Docker Deployment
docker build -t postman-lite-mcp .
docker run -i --rm -e POSTMAN_PUBLIC_WORKSPACE_API_KEY=YOUR-KEY postman-lite-mcpFor Claude Desktop:
{
"mcpServers": {
"postman": {
"command": "docker",
"args": ["run", "-i", "--rm", "-e", "POSTMAN_PUBLIC_WORKSPACE_API_KEY=YOUR-KEY", "postman-lite-mcp"]
}
}
}📋 List Available Tools
# If installed globally
postman-lite-mcp tools
# From source
node dist/cli.js tools🔧 Development
# Clone the repository
git clone <repository-url>
cd postman-mcp
# Install dependencies
npm install
# Build TypeScript
npm run build
# Run locally
node dist/index.js --apikey=YOUR-KEY🤝 Contributing
We welcome contributions! Please see our Contributing Guidelines for details on how to submit pull requests, report issues, and contribute to the project.
Important: Direct pushes to master are not allowed. All changes must be submitted via pull request.
🐛 Debugging
To debug the MCP server with the MCP Inspector:
# First build the project
npm run build
# Then use the MCP Inspector
npx @modelcontextprotocol/inspectorThe MCP Inspector provides a web interface to test and debug your MCP server tools interactively.
📝 License
MIT
