VOOZH about

URL: https://glama.ai/mcp/servers/dkmaker/mcp-rest-api?locale=ko-KR

โ‡ฑ mcp-rest-api by dkmaker | Glama


MCP REST API ํ…Œ์Šคํ„ฐ

๐Ÿ‘ ๋ผ์ด์„ผ์Šค: MIT
๐Ÿ‘ NPM ํŒจํ‚ค์ง€
๐Ÿ‘ ๋Œ€์žฅ๊ฐ„ ๋ฐฐ์ง€

Cline์„ ํ†ตํ•ด REST API๋ฅผ ํ…Œ์ŠคํŠธํ•  ์ˆ˜ ์žˆ๋Š” TypeScript ๊ธฐ๋ฐ˜ MCP ์„œ๋ฒ„์ž…๋‹ˆ๋‹ค. ์ด ๋„๊ตฌ๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ๊ฐœ๋ฐœ ํ™˜๊ฒฝ์—์„œ ์ง์ ‘ ๋ชจ๋“  REST API ์—”๋“œํฌ์ธํŠธ๋ฅผ ํ…Œ์ŠคํŠธํ•˜๊ณ  ์ƒํ˜ธ ์ž‘์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

์„ค์น˜

Smithery๋ฅผ ํ†ตํ•ด ์„ค์น˜

Smithery๋ฅผ ํ†ตํ•ด Claude Desktop์šฉ REST API ํ…Œ์Šคํ„ฐ๋ฅผ ์ž๋™์œผ๋กœ ์„ค์น˜ํ•˜๋ ค๋ฉด:

์ง€์—‘์Šคํ”ผ1

์ˆ˜๋™ ์„ค์น˜

  1. ํŒจํ‚ค์ง€๋ฅผ ์ „์—ญ์œผ๋กœ ์„ค์น˜ํ•ฉ๋‹ˆ๋‹ค.

npm install -g dkmaker-mcp-rest-api
  1. Cline ์‚ฌ์šฉ์ž ์ •์˜ ์ง€์นจ ๊ตฌ์„ฑ:

ํด๋ผ์ธ์ด ์ด ๋„๊ตฌ๋ฅผ ํšจ๊ณผ์ ์œผ๋กœ ์‚ฌ์šฉํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ์ดํ•ดํ•˜๋„๋ก ํ•˜๋ ค๋ฉด ํด๋ผ์ธ ์‚ฌ์šฉ์ž ์ •์˜ ์ง€์นจ์— ๋‹ค์Œ์„ ์ถ”๊ฐ€ํ•˜์„ธ์š”(์„ค์ • > ์‚ฌ์šฉ์ž ์ •์˜ ์ง€์นจ):

# REST API Testing Instructions

The `test_request` tool enables testing, debugging, and interacting with REST API endpoints. The tool provides comprehensive request/response information and handles authentication automatically.

## When to Use

- Testing specific API endpoints
- Debugging API responses
- Verifying API functionality
- Checking response times
- Validating request/response formats
- Testing local development servers
- Testing API sequences
- Verifying error handling

## Key Features

- Supports GET, POST, PUT, DELETE methods
- Handles authentication (Basic, Bearer, API Key)
- Normalizes endpoints automatically
- Provides detailed response information
- Configurable SSL verification and response limits

## Resources

The following resources provide detailed documentation:

- examples: Usage examples and common patterns
- response-format: Response structure and fields
- config: Configuration options and setup guide

Access these resources to understand usage, response formats, and configuration options.

## Important Notes

- Review API implementation for expected behavior
- Handle sensitive data appropriately
- Consider rate limits and API constraints
- Restart server after configuration changes
  1. MCP ๊ตฌ์„ฑ์— ์„œ๋ฒ„๋ฅผ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค.

์ด ์ง€์นจ์€ Cline์„ ์œ„ํ•œ ๊ฒƒ์ด์ง€๋งŒ, ์„œ๋ฒ„๋Š” ๋ชจ๋“  MCP ๊ตฌํ˜„์—์„œ ์ž‘๋™ํ•ฉ๋‹ˆ๋‹ค. ์šด์˜ ์ฒด์ œ์— ๋”ฐ๋ผ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ๊ตฌ์„ฑํ•˜์„ธ์š”.

์œˆ๋„์šฐ

โš ๏ธ ์ค‘์š” : Windows ๊ฒฝ๋กœ ํ™•์ธ์˜ ์•Œ๋ ค์ง„ ๋ฌธ์ œ( ๋ฌธ์ œ #40 )๋กœ ์ธํ•ด %APPDATA% ๋Œ€์‹  ์ „์ฒด ๊ฒฝ๋กœ๋ฅผ ์‚ฌ์šฉํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

C:\Users\<YourUsername>\AppData\Roaming\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json ์— ์ถ”๊ฐ€:

{
 "mcpServers": {
 "rest-api": {
 "command": "node",
 "args": [
 "C:/Users/<YourUsername>/AppData/Roaming/npm/node_modules/dkmaker-mcp-rest-api/build/index.js"
 ],
 "env": {
 "REST_BASE_URL": "https://api.example.com",
 // Basic Auth
 "AUTH_BASIC_USERNAME": "your-username",
 "AUTH_BASIC_PASSWORD": "your-password",
 // OR Bearer Token
 "AUTH_BEARER": "your-token",
 // OR API Key
 "AUTH_APIKEY_HEADER_NAME": "X-API-Key",
 "AUTH_APIKEY_VALUE": "your-api-key",
 // SSL Verification (enabled by default)
 "REST_ENABLE_SSL_VERIFY": "false", // Set to false to disable SSL verification for self-signed certificates
 // Response Size Limit (optional, defaults to 10000 bytes)
 "REST_RESPONSE_SIZE_LIMIT": "10000", // Maximum response size in bytes
 // Custom Headers (optional)
 "HEADER_X-API-Version": "2.0",
 "HEADER_Custom-Client": "my-client",
 "HEADER_Accept": "application/json"
 }
 }
 }
}

๋งฅOS

~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json ์— ์ถ”๊ฐ€:

{
 "mcpServers": {
 "rest-api": {
 "command": "npx",
 "args": [
 "-y",
 "dkmaker-mcp-rest-api"
 ],
 "env": {
 "REST_BASE_URL": "https://api.example.com",
 // Basic Auth
 "AUTH_BASIC_USERNAME": "your-username",
 "AUTH_BASIC_PASSWORD": "your-password",
 // OR Bearer Token
 "AUTH_BEARER": "your-token",
 // OR API Key
 "AUTH_APIKEY_HEADER_NAME": "X-API-Key",
 "AUTH_APIKEY_VALUE": "your-api-key",
 // SSL Verification (enabled by default)
 "REST_ENABLE_SSL_VERIFY": "false", // Set to false to disable SSL verification for self-signed certificates
 // Custom Headers (optional)
 "HEADER_X-API-Version": "2.0",
 "HEADER_Custom-Client": "my-client",
 "HEADER_Accept": "application/json"
 }
 }
 }
}

์ฐธ๊ณ : ํ™˜๊ฒฝ ๋ณ€์ˆ˜๋ฅผ ์‹ค์ œ ๊ฐ’์œผ๋กœ ๋ฐ”๊พธ์„ธ์š”. ํ•œ ๋ฒˆ์— ํ•˜๋‚˜์˜ ์ธ์ฆ ๋ฐฉ๋ฒ•๋งŒ ๊ตฌ์„ฑํ•˜์„ธ์š”.

  1. ๊ธฐ๋ณธ ์ธ์ฆ(์‚ฌ์šฉ์ž ์ด๋ฆ„/๋น„๋ฐ€๋ฒˆํ˜ธ)

  2. ๋ฒ ์–ด๋Ÿฌ ํ† ํฐ(๊ธฐ๋ณธ ์ธ์ฆ์ด ๊ตฌ์„ฑ๋˜์ง€ ์•Š์€ ๊ฒฝ์šฐ)

  3. API ํ‚ค(๊ธฐ๋ณธ ์ธ์ฆ์ด๋‚˜ ๋ฒ ์–ด๋Ÿฌ ํ† ํฐ์ด ๊ตฌ์„ฑ๋˜์ง€ ์•Š์€ ๊ฒฝ์šฐ)

Related MCP server: Angular Bootstrap MCP Server

ํŠน์ง•

  • ๋‹ค์–‘ํ•œ HTTP ๋ฉ”์„œ๋“œ๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ REST API ์—”๋“œํฌ์ธํŠธ ํ…Œ์ŠคํŠธ

  • GET, POST, PUT ๋ฐ DELETE ์š”์ฒญ ์ง€์›

  • ์ƒํƒœ, ํ—ค๋”, ๋ณธ๋ฌธ์„ ํฌํ•จํ•œ ์ž์„ธํ•œ ์‘๋‹ต ์ •๋ณด

  • ์‚ฌ์šฉ์ž ์ •์˜ ํ—ค๋”:

    • HEADER_* ํ™˜๊ฒฝ ๋ณ€์ˆ˜๋ฅผ ํ†ตํ•œ ๊ธ€๋กœ๋ฒŒ ํ—ค๋”

    • ๋Œ€์†Œ๋ฌธ์ž๋ฅผ ๊ตฌ๋ถ„ํ•˜์ง€ ์•Š๋Š” ์ ‘๋‘์‚ฌ(HEADER_, header_, HeAdEr_)

    • ํ—ค๋” ์ด๋ฆ„์˜ ๋Œ€์†Œ๋ฌธ์ž ์œ ์ง€

    • ์šฐ์„ ์ˆœ์œ„ ๊ธฐ๋ฐ˜ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜(์š”์ฒญ๋‹น > ์ธ์ฆ > ์‚ฌ์šฉ์ž ์ง€์ •)

  • POST/PUT ๋ฉ”์„œ๋“œ์— ๋Œ€ํ•œ ์š”์ฒญ ๋ณธ๋ฌธ ์ฒ˜๋ฆฌ

  • ์‘๋‹ต ํฌ๊ธฐ ๊ด€๋ฆฌ:

    • ์ž๋™ ์‘๋‹ต ํฌ๊ธฐ ์ œํ•œ(๊ธฐ๋ณธ๊ฐ’: 10KB/10000๋ฐ”์ดํŠธ)

    • REST_RESPONSE_SIZE_LIMIT ํ™˜๊ฒฝ ๋ณ€์ˆ˜๋ฅผ ํ†ตํ•ด ๊ตฌ์„ฑ ๊ฐ€๋Šฅํ•œ ํฌ๊ธฐ ์ œํ•œ

    • ์‘๋‹ต์ด ํ•œ๋„๋ฅผ ์ดˆ๊ณผํ•˜๋ฉด ์ž˜๋ฆผ ๋ฉ”ํƒ€๋ฐ์ดํ„ฐ๋ฅผ ์ง€์›๋‹ˆ๋‹ค.

    • ๋ณธ๋ฌธ ๋‚ด์šฉ๋งŒ ์ž˜๋ผ๋‚ด๋ฉด์„œ ์‘๋‹ต ๊ตฌ์กฐ๋ฅผ ์œ ์ง€ํ•ฉ๋‹ˆ๋‹ค.

  • SSL ์ธ์ฆ์„œ ํ™•์ธ:

    • ๋ณด์•ˆ ์ž‘๋™์„ ์œ„ํ•ด ๊ธฐ๋ณธ์ ์œผ๋กœ ํ™œ์„ฑํ™”๋จ

    • ์ž์ฒด ์„œ๋ช… ์ธ์ฆ์„œ ๋˜๋Š” ๊ฐœ๋ฐœ ํ™˜๊ฒฝ์—์„œ๋Š” ๋น„ํ™œ์„ฑํ™”ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

    • REST_ENABLE_SSL_VERIFY ํ™˜๊ฒฝ ๋ณ€์ˆ˜๋ฅผ ํ†ตํ•œ ์ œ์–ด

  • ๋‹ค์–‘ํ•œ ์ธ์ฆ ๋ฐฉ๋ฒ•:

    • ๊ธฐ๋ณธ ์ธ์ฆ(์‚ฌ์šฉ์ž ์ด๋ฆ„/๋น„๋ฐ€๋ฒˆํ˜ธ)

    • ๋ฒ ์–ด๋Ÿฌ ํ† ํฐ ์ธ์ฆ

    • API ํ‚ค ์ธ์ฆ(์‚ฌ์šฉ์ž ์ •์˜ ํ—ค๋”)

์‚ฌ์šฉ ์˜ˆ

์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ์ด ์™„๋ฃŒ๋˜๋ฉด Cline์„ ํ†ตํ•ด REST API ํ…Œ์Šคํ„ฐ๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ API ์—”๋“œํฌ์ธํŠธ๋ฅผ ํ…Œ์ŠคํŠธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

// Test a GET endpoint
use_mcp_tool('rest-api', 'test_request', {
 "method": "GET",
 "endpoint": "/users"
});

// Test a POST endpoint with body
use_mcp_tool('rest-api', 'test_request', {
 "method": "POST",
 "endpoint": "/users",
 "body": {
 "name": "John Doe",
 "email": "john@example.com"
 }
});

// Test with custom headers
use_mcp_tool('rest-api', 'test_request', {
 "method": "GET",
 "endpoint": "/products",
 "headers": {
 "Accept-Language": "en-US",
 "X-Custom-Header": "custom-value"
 }
});

๊ฐœ๋ฐœ

  1. ์ €์žฅ์†Œ๋ฅผ ๋ณต์ œํ•ฉ๋‹ˆ๋‹ค.

git clone https://github.com/zenturacp/mcp-rest-api.git
cd mcp-rest-api
  1. ์ข…์†์„ฑ ์„ค์น˜:

npm install
  1. ํ”„๋กœ์ ํŠธ๋ฅผ ๋นŒ๋“œํ•˜์„ธ์š”:

npm run build

์ž๋™ ์žฌ๋นŒ๋“œ๋ฅผ ์‚ฌ์šฉํ•œ ๊ฐœ๋ฐœ์˜ ๊ฒฝ์šฐ:

npm run watch

ํŠนํ—ˆ

์ด ํ”„๋กœ์ ํŠธ๋Š” MIT ๋ผ์ด์„ ์Šค์— ๋”ฐ๋ผ ๋ผ์ด์„ ์Šค๊ฐ€ ๋ถ€์—ฌ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ์ž์„ธํ•œ ๋‚ด์šฉ์€ ๋ผ์ด์„ ์Šค ํŒŒ์ผ์„ ์ฐธ์กฐํ•˜์„ธ์š”.

A
license - permissive license
A
quality
F
maintenance

Maintenance

โ€“Maintainers
โ€“Response time
โ€“Release cycle
โ€“Releases (12mo)
Commit activity
Issues opened vs closed

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/dkmaker/mcp-rest-api'

If you have feedback or need assistance with the MCP directory API, please join our Discord server