agentleFS
Postman-DevrelPostman-Devrel/postman-cursor-rules/.cursor/rules/postman-mcp.mdc

postman-cursor-rules / rules

Cursor rule0 starsChanged 10 months agoApache-2.0Archived repositoryView on GitHub

Postman MCP integration for API development workflows

  • Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.

    Of the Cursor rule files we read, the 1,533 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

The file

We split this postman-mcp.mdc into the rules it gives an agent

10 rules. About 0 are common, 9 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Update the Postman collection when:

    line 28
  2. Distinctive:

    After implementing a new endpoint:

    line 38
  3. Distinctive:

    Use the Postman MCP server to add the request to the collection

    line 39
  4. Distinctive:

    Add example success and error responses

    line 41
  5. Distinctive:

    Write a clear description for the endpoint

    line 42
  6. Distinctive:

    When the API spec changes in Postman:

    line 46
  7. Distinctive:

    Update code to match the spec

    line 49
  8. Distinctive:

    Verify request and response schemas align

    line 50
  9. Distinctive:

    Every request needs a description

    line 54
  10. Very specific:

    Use environment variables: {{base_url}}, {{api_key}}

    line 56

≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
postman-mcp.mdc
---
description: "Postman MCP integration for API development workflows"
globs: ["**/api/**/*", "**/routes/**/*", "**/routers/**/*", "**/endpoints/**/*", "**/controllers/**/*", "openapi.yaml", "openapi.json", "swagger.yaml", "swagger.json"]
alwaysApply: false
---

# Postman MCP Integration

## Workspace
- Workspace: <your-workspace-name>
- Workspace ID: <your-workspace-id>

Get your workspace ID from the Postman URL: `https://go.postman.co/workspace/<workspace-id>`

## MCP Server
This project uses the Postman MCP server at `https://mcp.postman.com/code`.

Three server modes are available:

| Mode | URL | Use Case |
|------|-----|----------|
| Minimal | `https://mcp.postman.com/minimal` | Basic collection operations |
| Code | `https://mcp.postman.com/code` | API search + client code generation |
| Full | `https://mcp.postman.com/mcp` | Everything (100+ Postman API tools) |

## When to Sync with Postman

Update the Postman collection when:
1. Adding a new endpoint
2. Changing request or response schemas
3. Adding or modifying query parameters or headers
4. Updating authentication requirements
5. Changing error response formats

## Sync Workflow

### Code to Postman
After implementing a new endpoint:
1. Use the Postman MCP server to add the request to the collection
2. Include example request body (if applicable)
3. Add example success and error responses
4. Write a clear description for the endpoint
5. Group the request under the appropriate resource folder

### Postman to Code
When the API spec changes in Postman:
1. Fetch the spec via MCP
2. Compare with local models and schemas
3. Update code to match the spec
4. Verify request and response schemas align

## Collection Standards
- Group requests by resource (Users, Orders, Products, etc.)
- Every request needs a description
- Include example responses for success and error cases
- Use environment variables: `{{base_url}}`, `{{api_key}}`
- Tag requests by category when applicable

## Example Prompts

**Add an endpoint to the collection:**
> "Using the Postman MCP server, add a new GET /users/{id}/orders endpoint to my collection. Include pagination query params and an example response."

**Check for drift between code and Postman:**
> "Fetch the API spec from my Postman workspace and compare it to my local schemas. Are there any fields that are out of sync?"

**Bulk sync after changes:**
> "I updated the Orders router with 3 new endpoints. Add all of them to the Postman collection with descriptions and example responses."

**Generate client code:**
> "Using the Postman MCP server, find the Users API in my workspace and generate a TypeScript client for it."

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.