REST-to-Postman MCP
REST API ์ฝ๋(์: NestJS ์ปจํธ๋กค๋ฌ, FastAPI/Flask ์๋ํฌ์ธํธ)๋ฅผ Postman ์ปฌ๋ ์ ๋ฐ ํ๊ฒฝ์ผ๋ก ๋ณํํ๋ ๋ชจ๋ธ ์ปจํ ์คํธ ํ๋กํ ์ฝ(MCP) ์๋ฒ์ ๋๋ค. ์ด ๋๊ตฌ๋ ๊ฐ๋ฐ์๊ฐ REST API ์๋ํฌ์ธํธ์ ํ๊ฒฝ ๊ตฌ์ฑ์ Postman๊ณผ ์๋์ผ๋ก ๋๊ธฐํํ ์ ์๋๋ก ์ง์ํฉ๋๋ค.
ํน์ง
REST API ์๋ํฌ์ธํธ๋ฅผ Postman ์ปฌ๋ ์ ์ผ๋ก ๋ณํ
Postman ํ๊ฒฝ๊ณผ ํ๊ฒฝ ๋ณ์ ๋๊ธฐํ
๋ค์ํ ์ธ์ฆ ๋ฐฉ์ ์ง์(์: Bearer ํ ํฐ)
๊ธฐ์กด ์ปฌ๋ ์ ๊ณผ ์๋ก์ด ์๋ํฌ์ธํธ์ ์ง๋ฅ์ ๋ณํฉ
๋ฏผ๊ฐํ ํ๊ฒฝ ๋ณ์์ ์๋ ์ฒ๋ฆฌ
stdio ๋ฐ SSE ์ ์ก ๋ชจ๋ ๋ชจ๋ ์ง์
Related MCP server: Postman MCP Generator
ํ์ ์กฐ๊ฑด
Bun v1.2.2 ์ด์
Postman API ํค
Postman ์์ ๊ณต๊ฐ ID
์ค์น ๋ฐ ์ฌ์ฉ
์ด๋ Postman ์์ ๊ณต๊ฐ์ ์ก์ธ์คํ์ฌ ์ปฌ๋ ์ ๊ณผ ํ๊ฒฝ์ ์์ฑ/์ ๋ฐ์ดํธํด์ผ ํ๋ MCP(Model Context Protocol) stdio ์๋ฒ์ ๋๋ค.
Smithery๋ฅผ ํตํด ์ค์น
Smithery๋ฅผ ํตํด Claude Desktop์ฉ REST-to-Postman MCP๋ฅผ ์๋์ผ๋ก ์ค์นํ๋ ค๋ฉด:
์ง์์คํผ1
npx ๋ก MCP ์๋ฒ ์คํ
npx ์ ํจ๊ป MCP ์๋ฒ๋ฅผ ์ฌ์ฉํ๋ ค๋ฉด:
npx -y rest-to-postman@latest --postman-api-key your_api_key --postman-workspace-id your_workspace_id๋๋ ํ๊ฒฝ ๋ณ์๋ฅผ ์ฌ์ฉํ์ธ์.
export POSTMAN_API_KEY=your_api_key
export POSTMAN_ACTIVE_WORKSPACE_ID=your_workspace_id
npx -y rest-to-postman@latest ์ด ๋ช ๋ น์ MCP๋ฅผ ์ง์ํ๋ ๋ค์ํ AI ์ฝ๋ ํธ์ง๊ธฐ์ ํตํฉํ ์ ์์ต๋๋ค.
ํด๋ก๋ ๋ฐ์คํฌํ
์ปค์
์๋์ํ
๋ฃจ ํด๋ผ์ธ ํธ์ง์
์ค์ ์ฐธ๊ณ : ์๋ฒ๊ฐ ์๋ํ๋ ค๋ฉด Postman API ์๊ฒฉ ์ฆ๋ช ์ด ํ์ํฉ๋๋ค. ์๋ฒ๋ฅผ ์์ํ๊ธฐ ์ ์ API ํค์ ์์ ๊ณต๊ฐ ID๋ฅผ ๋ชจ๋ ์ค๋นํ์ธ์.
๋๊ตฌ ์ค๋ช
์๋ฒ๋ ๋ ๊ฐ์ง ์ฃผ์ ๋๊ตฌ๋ฅผ ์ ๊ณตํฉ๋๋ค.
1. REST์์ Postman ํ๊ฒฝ( rest_to_postman_env )
์ ํ๋ฆฌ์ผ์ด์ ์ ํ๊ฒฝ ๋ณ์๋ฅผ ์ฌ์ฉํ์ฌ Postman ํ๊ฒฝ์ ์์ฑํ๊ฑฐ๋ ์ ๋ฐ์ดํธํฉ๋๋ค.
์ ๋ ฅ ๋งค๊ฐ๋ณ์:
envName(๋ฌธ์์ด): Postman ํ๊ฒฝ์ ์ด๋ฆenvVars(๊ฐ์ฒด): ํ๊ฒฝ ๋ณ์์ ํค-๊ฐ ์
์ ๋ ฅ ์์:
{
"envName": "REST Environment",
"envVars": {
"API_URL": "https://api.example.com",
"API_TOKEN": "secret-token-1"
}
}2. REST์์ Postman ์ปฌ๋ ์
์ผ๋ก( rest_to_postman_collection )
REST API ์๋ํฌ์ธํธ๋ฅผ ์ฌ์ฉํ์ฌ Postman ์ปฌ๋ ์ ์ ๋ง๋ค๊ฑฐ๋ ์ ๋ฐ์ดํธํฉ๋๋ค.
์ ๋ ฅ ๋งค๊ฐ๋ณ์:
collectionRequest(๊ฐ์ฒด): ๋ค์์ ํฌํจํ๋ Postman ์ปฌ๋ ์ ๊ตฌ์ฑ:info: ์ปฌ๋ ์ ๋ฉํ๋ฐ์ดํฐauth: ์ธ์ฆ ์ค์ item: API ์๋ํฌ์ธํธ ๋ฐฐ์ด
์ ๋ ฅ ์์:
{
"info": {
"name": "REST Collection",
"description": "REST Collection",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"auth": {
"type": "bearer",
"bearer": [
{
"key": "Authorization",
"value": "Bearer {{API_TOKEN}}",
"type": "string"
}
]
},
"item": [
{
"name": "Get Users",
"request": {
"method": "GET",
"url": {
"raw": "{{API_URL}}/users",
"protocol": "https",
"host": ["api", "example", "com"],
"path": ["users"]
}
}
}
]
}์๋ต ํ์
๋ ๋๊ตฌ ๋ชจ๋ Postman ๋ฆฌ์์ค ์์ฑ/์ ๋ฐ์ดํธ๋ฅผ ํ์ธํ๋ ์ฑ๊ณต ๋ฉ์์ง๋ฅผ ๋ฐํํฉ๋๋ค.
{
"content": [{
"type": "text",
"text": "Successfully created/updated Postman environment: REST Environment"
}]
}์ปค์์์ ์ด MCP๋ฅผ ์ฌ์ฉํ์ธ์
Cursor์์ ์ด MCP ์๋ฒ๋ฅผ ์ฌ์ฉํ ์ ์์ต๋๋ค. Nest.js Typescript ์ปจํธ๋กค๋ฌ๋ฅผ ๊ธฐ๋ฐ์ผ๋ก Postman ์ปฌ๋ ์ ์ ์์ฑํ๋ ์์๋ ๋ค์๊ณผ ๊ฐ์ต๋๋ค.
์ฆ๊ฐ์ ์ธ :
Create a postman collection named "Campaign Endpoints" based on this next.js controller. The baseUrl is `http://localhost:7022`. The collection should have a Bear token which applies to all the endpoints์๋ ์์ฑ๋ Postman ์ปฌ๋ ์ ์ ๋ค์๊ณผ ๊ฐ์ต๋๋ค.
Campaign ์ปจํธ๋กค๋ฌ์ ๋ชจ๋ ์๋ํฌ์ธํธ๊ฐ Bear ํ ํฐ ์ค์ ๊ณผ ํจ๊ป ์์ฑ๋ฉ๋๋ค.
๊ฐ๋ฐ
๋ก์ปฌ ์ค์
์ ์ฅ์๋ฅผ ๋ณต์ ํฉ๋๋ค.
git clone https://github.com/runninghare/rest-to-postman.git
cd rest-to-postman์ข ์์ฑ ์ค์น:
bun install.envํ์ผ์ ๋ง๋ญ๋๋ค.
POSTMAN_API_KEY=your_api_key_here
POSTMAN_ACTIVE_WORKSPACE_ID=your_workspace_id_here๊ฐ๋ฐ ๋ชจ๋์์ ์คํ
๊ฐ๋ฐ์ ์ํด Bun์ ์ฌ์ฉํ์ฌ ์๋ฒ๋ฅผ ์ง์ ์คํํ ์ ์์ต๋๋ค.
# Start in stdio mode (default)
bun run src/mcp.ts
# Start in SSE mode
bun run src/mcp.ts --sse๊ฑด๋ฌผ
ํ๋ก์ ํธ๋ฅผ ๋น๋ํ๋ ค๋ฉด:
bun run build์ด๋ ๊ฒ ํ๋ฉด dist ๋๋ ํ ๋ฆฌ์ ๋ฌถ์ธ ์ถ๋ ฅ์ด ์์ฑ๋ฉ๋๋ค.
์คํฌ๋ฆฝํธ
bun run build- ํ๋ก์ ํธ ๋น๋bun run dev- ๊ฐ๋ฐ ๋ชจ๋์์ ์๋ฒ ์คํbun run startSSE- SSE ๋ชจ๋๋ก ์๋ฒ ์์
๊ธฐ์ฌํ๋ค
๊ธฐ์ฌ๋ฅผ ํ์ํฉ๋๋ค! ํ ๋ฆฌํ์คํธ๋ฅผ ์ ์ถํด ์ฃผ์ธ์.
ํนํ
์ด ํ๋ก์ ํธ๋ MIT ๋ผ์ด์ ์ค์ ๋ฐ๋ผ ๋ผ์ด์ ์ค๊ฐ ๋ถ์ฌ๋์์ต๋๋ค. ์์ธํ ๋ด์ฉ์ ๋ผ์ด์ ์ค ํ์ผ์ ์ฐธ์กฐํ์ธ์.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Appeared in Searches
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/runninghare/rest-to-postman'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
