MCP REST API ํ ์คํฐ
๐ ๋ผ์ด์ผ์ค: MIT
๐ NPM ํจํค์ง
๐ ๋์ฅ๊ฐ ๋ฐฐ์ง
Cline์ ํตํด REST API๋ฅผ ํ ์คํธํ ์ ์๋ TypeScript ๊ธฐ๋ฐ MCP ์๋ฒ์ ๋๋ค. ์ด ๋๊ตฌ๋ฅผ ์ฌ์ฉํ๋ฉด ๊ฐ๋ฐ ํ๊ฒฝ์์ ์ง์ ๋ชจ๋ REST API ์๋ํฌ์ธํธ๋ฅผ ํ ์คํธํ๊ณ ์ํธ ์์ฉํ ์ ์์ต๋๋ค.
์ค์น
Smithery๋ฅผ ํตํด ์ค์น
Smithery๋ฅผ ํตํด Claude Desktop์ฉ REST API ํ ์คํฐ๋ฅผ ์๋์ผ๋ก ์ค์นํ๋ ค๋ฉด:
์ง์์คํผ1
์๋ ์ค์น
ํจํค์ง๋ฅผ ์ ์ญ์ผ๋ก ์ค์นํฉ๋๋ค.
npm install -g dkmaker-mcp-rest-apiCline ์ฌ์ฉ์ ์ ์ ์ง์นจ ๊ตฌ์ฑ:
ํด๋ผ์ธ์ด ์ด ๋๊ตฌ๋ฅผ ํจ๊ณผ์ ์ผ๋ก ์ฌ์ฉํ๋ ๋ฐฉ๋ฒ์ ์ดํดํ๋๋ก ํ๋ ค๋ฉด ํด๋ผ์ธ ์ฌ์ฉ์ ์ ์ ์ง์นจ์ ๋ค์์ ์ถ๊ฐํ์ธ์(์ค์ > ์ฌ์ฉ์ ์ ์ ์ง์นจ):
# 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 changesMCP ๊ตฌ์ฑ์ ์๋ฒ๋ฅผ ์ถ๊ฐํฉ๋๋ค.
์ด ์ง์นจ์ 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"
}
}
}
}์ฐธ๊ณ : ํ๊ฒฝ ๋ณ์๋ฅผ ์ค์ ๊ฐ์ผ๋ก ๋ฐ๊พธ์ธ์. ํ ๋ฒ์ ํ๋์ ์ธ์ฆ ๋ฐฉ๋ฒ๋ง ๊ตฌ์ฑํ์ธ์.
๊ธฐ๋ณธ ์ธ์ฆ(์ฌ์ฉ์ ์ด๋ฆ/๋น๋ฐ๋ฒํธ)
๋ฒ ์ด๋ฌ ํ ํฐ(๊ธฐ๋ณธ ์ธ์ฆ์ด ๊ตฌ์ฑ๋์ง ์์ ๊ฒฝ์ฐ)
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"
}
});๊ฐ๋ฐ
์ ์ฅ์๋ฅผ ๋ณต์ ํฉ๋๋ค.
git clone https://github.com/zenturacp/mcp-rest-api.git
cd mcp-rest-api์ข ์์ฑ ์ค์น:
npm installํ๋ก์ ํธ๋ฅผ ๋น๋ํ์ธ์:
npm run build์๋ ์ฌ๋น๋๋ฅผ ์ฌ์ฉํ ๊ฐ๋ฐ์ ๊ฒฝ์ฐ:
npm run watchํนํ
์ด ํ๋ก์ ํธ๋ MIT ๋ผ์ด์ ์ค์ ๋ฐ๋ผ ๋ผ์ด์ ์ค๊ฐ ๋ถ์ฌ๋์์ต๋๋ค. ์์ธํ ๋ด์ฉ์ ๋ผ์ด์ ์ค ํ์ผ์ ์ฐธ์กฐํ์ธ์.
Maintenance
Tools
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
