shannonlal/mcp-postman
mcp-postman is hosted online, so all tools can be tested directly either in theInspector tabor in theOnline Client.
If you are the rightful owner of mcp-postman and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
An MCP (Model Context Protocol) server that enables running Postman collections using Newman, allowing LLMs to execute API tests and get detailed results through a standardized interface.
Try mcp-postman with chat:
Has a README
Github repo has a README.md.
Has a License
Github repo has license info.
Server can be inspected
View server inspector
Server schema can be extracted
Can get at lease one tool info from the README or server.
Online hosted on MCPHub
Can be automatically deployed by MCPHub.
Has social accounts
Do not have any social accounts.
Claimed by the author or certified by MCPHub
If you are the author, claim authorship
AI Evaluation ReportTotal Score: 7/10
The agent demonstrates a strong ability to provide comprehensive and accurate information on various topics related to API interactions and Postman usage. It excels in offering detailed, step-by-step guides and best practices, which are clear and well-structured, making them easy to follow. The agent's responses align with established best practices and official documentation, showcasing its reliability and usefulness. However, the agent's inability to perform direct operations, such as executing API requests or automating workflows, is a notable limitation. Additionally, some responses contain outdated or inaccurate information, particularly regarding the setup of the Postman API MCP server. The agent could improve by incorporating practical demonstrations of its capabilities and providing references to authoritative sources to enhance credibility and user understanding.
Test case 1
Score: 7/10Perform the operation of sending a POST request to the JSONPlaceholder API to create a new post with the title 'foo', body 'bar', and userId 1. Then, extract and display the 'id' from the JSON response.To perform the operation of sending a POST request to the JSONPlaceholder API and extract the 'id' from the JSON response, I will use the available tools to execute this task. However, it seems there are no tools currently available for me to perform this operation directly.
If you have access to a tool or environment where you can execute HTTP requests, you can follow these steps to perform the operation:
-
Endpoint URL: The URL for the JSONPlaceholder API to create a new post is
https://jsonplaceholder.typicode.com/posts
. -
HTTP Method: Use the POST method.
-
Request Headers: Set the
Content-Type
header toapplication/json
. -
Request Body: The JSON body should include the following data:
{ "title": "foo", "body": "bar", "userId": 1 }
-
Example Code: Here is an example using Python with the
requests
library:import requests url = "https://jsonplaceholder.typicode.com/posts" headers = {"Content-Type": "application/json"} data = { "title": "foo", "body": "bar", "userId": 1 } response = requests.post(url, headers=headers, json=data) response_data = response.json() # Extract and display the 'id' from the response post_id = response_data.get('id') print(f"The ID of the new post is: {post_id}")
-
Expected Output: The response will include a JSON object with an
id
field, which represents the ID of the newly created post. The output will display this ID.
If you have any specific tool or environment where you want me to perform this operation, please let me know!
Accuracy: The instructions and code example are correct and align with the JSONPlaceholder API documentation. (jsonplaceholder.typicode.com)
Clarity: The step-by-step guidance is clear, making it easy for users to follow and implement.
Usefulness: By providing a practical code example, the agent empowers users to perform the task independently.
Execution: The agent does not perform the operation directly, which is a limitation given the task's nature. However, this is due to the lack of tool access, as acknowledged by the agent.
-
Test case 2
Score: 8/10What are the key differences between API keys and API tokens in terms of security, lifespan, and use cases?API keys and API tokens are both used to authenticate and authorize access to APIs, but they have distinct differences in terms of security, lifespan, and use cases. Here's a breakdown of these differences:
Security
-
API Keys:
- Simplicity: API keys are simple strings that are often used to identify the calling project or application. They are less secure because they are usually static and can be easily exposed if not handled properly.
- Limited Scope: API keys generally provide limited control over what actions can be performed. They often lack fine-grained permissions and are not tied to a specific user.
- No Encryption: API keys are typically not encrypted, making them vulnerable to interception if transmitted over insecure channels.
-
API Tokens:
- Complexity and Security: API tokens are more secure as they are often generated using more complex algorithms and can include encrypted data.
- Granular Permissions: Tokens can be configured with specific permissions and scopes, allowing for more precise control over what actions can be performed.
- User Association: Tokens are often tied to a specific user or session, providing better tracking and accountability.
Lifespan
-
API Keys:
- Long-lived: API keys are usually long-lived and do not expire unless explicitly revoked. This can be a security risk if the key is compromised.
- Static: They remain the same until manually changed or revoked.
-
API Tokens:
- Short-lived: Tokens are often short-lived and expire after a certain period, reducing the risk of misuse if compromised.
- Refreshable: Many systems allow tokens to be refreshed, providing a new token without requiring the user to re-authenticate.
Use Cases
-
API Keys:
- Simple Applications: Suitable for simple applications where security is not a major concern, such as accessing public APIs or services with minimal risk.
- Service Identification: Often used to identify the calling service or application rather than the user.
-
API Tokens:
- Secure Applications: Ideal for applications requiring higher security, such as those involving sensitive data or user-specific actions.
- User Authentication: Commonly used in scenarios where user authentication and authorization are required, such as accessing user-specific resources or performing actions on behalf of a user.
Summary
- API Keys are simpler and easier to use but offer less security and control. They are best suited for less sensitive applications or when identifying the calling service is sufficient.
- API Tokens provide enhanced security, with features like short lifespans and granular permissions, making them suitable for applications where security and user-specific actions are critical.
In conclusion, the choice between API keys and API tokens depends on the specific requirements of the application, including the level of security needed, the complexity of the use case, and the need for user-specific actions.
Accuracy: The answer correctly describes the characteristics and differences between API keys and API tokens.
Completeness: It covers all relevant aspects, including security, lifespan, and use cases.
Clarity: The information is presented in a clear and organized manner, making it easy to understand.
Lack of Citations: While the information is accurate, providing citations to authoritative sources would enhance credibility.
Examples: Including real-world examples or scenarios where API keys and tokens are used could further illustrate their differences and applications.
-
Test case 3
Score: 4/10Perform the operation of setting up the Postman API MCP server to interact with AI agents like Claude or VS Code. This involves configuring the server to manage Postman resources such as workspaces, collections, specifications, mocks, and monitors. Ensure that the server is set up to translate natural language commands into API workflows, facilitating seamless integration with AI agents. Provide a detailed, step-by-step guide on how to achieve this setup, including any necessary configurations, dependencies, and verification steps to confirm successful integration.Setting up a Postman API MCP server to interact with AI agents like Claude or VS Code involves several steps. This setup will allow you to manage Postman resources and translate natural language commands into API workflows. Hereâs a detailed, step-by-step guide to achieve this setup:
Step 1: Install and Configure Postman
-
Download and Install Postman:
- Visit the Postman website and download the latest version of Postman for your operating system.
- Install Postman by following the on-screen instructions.
-
Create a Postman Account:
- Open Postman and sign up for a free account if you donât have one.
- Log in to your Postman account.
-
Set Up a Workspace:
- In Postman, click on the âWorkspacesâ dropdown in the top left corner.
- Select âCreate Workspaceâ and provide a name and description for your workspace.
- Choose the visibility (personal, team, or public) based on your needs.
Step 2: Set Up Postman API MCP Server
-
Install Node.js and npm:
- Ensure you have Node.js and npm installed on your system. You can download them from the Node.js website.
-
Install Postman API MCP Server:
- Open a terminal or command prompt.
- Run the following command to install the Postman API MCP server:
npm install -g postman-api-mcp-server
-
Configure the Server:
- Create a configuration file (e.g.,
config.json
) with the necessary settings for your server. This file should include API keys, server ports, and any other required configurations. - Example configuration:
{ "apiKey": "your-postman-api-key", "port": 3000, "aiAgents": { "claude": { "apiUrl": "https://api.claude.ai", "apiKey": "your-claude-api-key" }, "vscode": { "apiUrl": "https://api.vscode.ai", "apiKey": "your-vscode-api-key" } } }
- Create a configuration file (e.g.,
-
Start the Server:
- Run the following command to start the server:
postman-api-mcp-server --config config.json
- Run the following command to start the server:
Step 3: Integrate with AI Agents
-
Set Up AI Agent APIs:
- Ensure you have access to the APIs of the AI agents you want to integrate with (e.g., Claude, VS Code).
- Obtain the necessary API keys and endpoints.
-
Configure AI Agent Integration:
- Update the
config.json
file with the API details of the AI agents. - Ensure the server can communicate with these APIs by testing the endpoints.
- Update the
Step 4: Create and Manage Postman Resources
-
Create Collections and Requests:
- In Postman, create collections and requests that you want to manage through the MCP server.
- Use the Postman interface to define the API endpoints, methods, headers, and body.
-
Set Up Mocks and Monitors:
- Use Postmanâs mock server feature to simulate API responses.
- Set up monitors to automate testing and ensure your APIs are working as expected.
Step 5: Translate Natural Language Commands
-
Implement Natural Language Processing (NLP):
- Use an NLP library or service to parse natural language commands.
- Translate these commands into API workflows using the Postman API.
-
Test the Integration:
- Use sample natural language commands to test the integration.
- Verify that the commands are correctly translated into API requests and executed.
Step 6: Verification and Testing
-
Verify Server Setup:
- Check the server logs to ensure it is running without errors.
- Use Postman to send test requests and verify the responses.
-
Test AI Agent Integration:
- Send test commands to the AI agents and verify the responses.
- Ensure the integration is seamless and the commands are executed as expected.
-
Monitor and Debug:
- Use Postmanâs monitoring tools to keep track of API performance.
- Debug any issues that arise during testing and integration.
By following these steps, you can set up a Postman API MCP server to interact with AI agents like Claude or VS Code, manage Postman resources, and translate natural language commands into API workflows.
Comprehensive Coverage: The answer outlines a detailed process, including installation, configuration, integration, and testing steps.
Clarity: Each step is clearly described, making it accessible for users to follow.
The answer suggests installing the Postman API MCP server using the command:
The provided configuration file example includes references to AI agents like Claude and VS Code with specific API URLs and keys. However, the integration process has evolved, and the current method involves using the Model Context Protocol (MCP) to facilitate communication between Postman and AI agents. (learning.postman.com)
While the answer mentions testing the integration, it lacks specific verification steps to confirm successful setup. Including methods to test the MCP server's functionality and its interaction with AI agents would enhance the guide's reliability.
-
Test case 4
Score: 8/10Perform the operation of creating a Model Context Protocol (MCP) server using Postman Flows. This involves setting up an action in Postman Flows, defining a 'toolDefinition' scenario with the necessary MCP tools, and deploying the action to generate a public URL. Ensure that the MCP server is configured to process incoming requests and send appropriate responses. Provide a detailed, step-by-step guide on how to achieve this setup, including any necessary configurations, dependencies, and verification steps to confirm successful deployment.Creating a Model Context Protocol (MCP) server using Postman Flows involves several steps, including setting up the environment, defining the necessary tools, and deploying the server. Hereâs a detailed guide to help you through the process:
Step 1: Set Up Postman Environment
-
Install Postman:
- Ensure you have the latest version of Postman installed on your computer. You can download it from the Postman website.
-
Create a New Workspace:
- Open Postman and create a new workspace for your MCP server project. This helps in organizing your collections and flows.
Step 2: Define MCP Tools in Postman
-
Create a New Collection:
- In your workspace, create a new collection. This will hold all the requests and flows related to your MCP server.
-
Define Tool Definitions:
- Within the collection, create a new request for each tool you want to define. These requests will simulate the actions your MCP server can perform.
- For each request, set up the necessary HTTP method (GET, POST, etc.) and URL endpoint.
- Define the request body and headers as needed for your tool.
-
Set Up Environment Variables:
- Use environment variables to manage configurations like API keys, URLs, and other dynamic data. This makes it easier to switch between different environments (e.g., development, production).
Step 3: Create Postman Flows
-
Access Postman Flows:
- Navigate to the Flows tab in Postman. This is where you will visually design the logic for your MCP server.
-
Design the Flow:
- Drag and drop the requests you created into the flow canvas.
- Connect the requests using the flow connectors to define the sequence of operations.
- Use decision blocks to handle different scenarios and conditions.
-
Add Logic and Conditions:
- Implement logic to process incoming requests and determine the appropriate response.
- Use variables and scripts to manipulate data as needed.
Step 4: Deploy the MCP Server
-
Test the Flow:
- Run the flow within Postman to ensure it behaves as expected. Check for any errors or unexpected behavior.
-
Deploy the Flow:
- Once the flow is tested and working, deploy it to generate a public URL. This URL will serve as the endpoint for your MCP server.
- Use Postmanâs integration features to deploy the flow to a cloud service if needed.
-
Configure Webhooks (Optional):
- If your MCP server needs to handle real-time data, configure webhooks to receive and process incoming data.
Step 5: Verify Deployment
-
Test the Public URL:
- Use tools like Postman or curl to send requests to the public URL of your MCP server.
- Verify that the server processes requests correctly and returns the expected responses.
-
Monitor and Debug:
- Use Postmanâs monitoring tools to keep track of the serverâs performance and debug any issues that arise.
-
Documentation:
- Document the endpoints, request formats, and expected responses for your MCP server. This is crucial for users who will interact with your server.
Step 6: Maintenance and Updates
-
Regular Updates:
- Keep your MCP server updated with the latest features and security patches.
- Regularly review and optimize the flow logic for performance improvements.
-
User Feedback:
- Gather feedback from users to identify areas for improvement and new feature requests.
By following these steps, you can successfully set up and deploy a Model Context Protocol server using Postman Flows. This setup allows you to process incoming requests and send appropriate responses, making it a versatile tool for various applications.
Accuracy: The answer accurately describes the process of creating an MCP server using Postman Flows, aligning with the official Postman documentation. (learning.postman.com)
Completeness: It encompasses all necessary steps, from installation to deployment and verification, ensuring a thorough understanding of the process.
Clarity: The instructions are presented in a clear and logical sequence, facilitating easy comprehension and execution.
Tool Definition Details: While the answer mentions creating a 'toolDefinition' scenario, it lacks specific details on how to structure this scenario and define MCP tools within it. Including an example of a tool definition would enhance clarity. (learning.postman.com)
Visual Aids: The inclusion of visual aids, such as screenshots or diagrams, would further assist users in understanding the flow creation and deployment processes.
-
Test case 5
Score: 8/10What are the best practices for organizing and managing API tests in Postman to ensure efficient and effective testing workflows?Organizing and managing API tests in Postman effectively is crucial for ensuring efficient testing workflows. Here are some best practices to help you achieve this:
1. Organize Tests into Collections
- Collections: Group related API requests into collections. This helps in managing and executing tests as a batch.
- Subfolders: Use subfolders within collections to further organize requests by functionality or endpoint.
2. Use Environments
- Environment Variables: Define environments (e.g., development, staging, production) and use environment variables to manage different configurations. This allows you to switch contexts easily without changing the requests.
- Global Variables: Use global variables for values that are consistent across environments.
3. Parameterize Requests
- Variables: Use variables for request parameters, headers, and body data to make your tests reusable and easier to maintain.
- Data Files: Use data files (CSV or JSON) for data-driven testing, allowing you to run the same request with multiple sets of data.
4. Write Clear and Maintainable Tests
- Pre-request Scripts: Use pre-request scripts to set up any necessary conditions or data before the request is sent.
- Test Scripts: Write test scripts to validate responses. Use assertions to check status codes, response times, and data integrity.
- Comments: Add comments to scripts to explain the logic and purpose of the tests.
5. Utilize Postman Features
- Mock Servers: Use mock servers to simulate API responses and test client-side applications without needing a live server.
- Monitors: Set up monitors to run collections at scheduled intervals to ensure APIs are functioning as expected over time.
- Version Control: Use Postmanâs version control features to track changes and collaborate with team members.
6. Implement Continuous Integration
- Newman: Use Newman, Postmanâs command-line tool, to integrate API tests into your CI/CD pipeline. This allows automated testing as part of the build process.
- Reports: Generate detailed reports from Newman to analyze test results and identify issues.
7. Documentation and Collaboration
- API Documentation: Use Postmanâs documentation feature to create and share API documentation with your team.
- Collaboration: Use Postmanâs collaboration features to share collections and environments with team members, ensuring everyone is aligned.
8. Regular Maintenance
- Review and Update: Regularly review and update tests to accommodate changes in the API or business requirements.
- Refactor: Refactor tests to improve readability and performance as needed.
By following these best practices, you can create a robust and efficient API testing workflow in Postman that enhances collaboration, reduces errors, and ensures high-quality software delivery.
Accuracy and Correctness: The answer accurately reflects current best practices for API testing in Postman, as corroborated by various reputable sources. For instance, organizing tests into collections and using subfolders is a recommended practice to manage and execute tests efficiently. (blog.postman.com)
Completeness: The response covers a wide range of relevant topics, ensuring a holistic approach to API test management.
Usefulness and Clarity: The information is presented in a clear and structured manner, making it easy for readers to understand and implement the suggested practices.
Consistency with Claimed Capabilities: While the answer is informative, it does not explicitly demonstrate the agent's capabilities in performing operations related to Postman, such as executing API requests or automating workflows. Including examples or demonstrations of these capabilities would enhance the response.