api-mock-server
Cloudflare Workers MCP server: api-mock-server
Should I use this
Quality & Safety
Findings (5)
- LOWin list_mocks
- LOWin get_mock_endpoint
- LOWin delete_mock
- LOWin update_mock_response
- LOWin get_mock_logs
Based on automated analysis of tool definitions and protocol compliance.
Context Cost
This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.
Install
One-Click Install
Add this to your `claude_desktop_config.json` file:
{
"mcpServers": {
"api-mock-server": {
"url": "https://api.lazy-mac.com/api-mock-server/mcp"
}
}
}Remote endpoints
https://api.lazy-mac.com/api-mock-server/mcpstreamable-httpWhat it can do
Tool inventory
Tools (6)
π‘create_mock(name, spec, description)
OpenAPI/Swagger μ€ν(JSON)μΌλ‘ λͺ©μ API μλ²λ₯Ό μμ±ν©λλ€. μ¦μ μ¬μ© κ°λ₯ν μλν¬μΈνΈ URLμ λ°νν©λλ€.
Input Schema
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "λͺ©μ
μλ² μ΄λ¦"
},
"spec": {
"type": "object",
"description": "OpenAPI 3.0 λλ Swagger 2.0 μ€ν JSON κ°μ²΄"
},
"description": {
"type": "string",
"description": "λͺ©μ
μλ² μ€λͺ
(μ ν)"
}
},
"required": [
"name",
"spec"
]
}π’list_mocks
μμ±λ λͺ¨λ λͺ©μ μλ² λͺ©λ‘μ λ°νν©λλ€.
Input Schema
{
"type": "object",
"properties": {}
}π’get_mock_endpoint(mock_id)
νΉμ λͺ©μ μλ²μ μμΈ μ 보μ μλν¬μΈνΈ λͺ©λ‘μ λ°νν©λλ€.
Input Schema
{
"type": "object",
"properties": {
"mock_id": {
"type": "string",
"description": "λͺ©μ
μλ² ID"
}
},
"required": [
"mock_id"
]
}π΄delete_mock(mock_id)
λͺ©μ μλ²λ₯Ό μμ ν©λλ€.
Input Schema
{
"type": "object",
"properties": {
"mock_id": {
"type": "string",
"description": "μμ ν λͺ©μ
μλ² ID"
}
},
"required": [
"mock_id"
]
}π‘update_mock_response(mock_id, method, path, status, response, ...)
νΉμ μλν¬μΈνΈμ μλ΅μ μμ νκ±°λ μ μλν¬μΈνΈλ₯Ό μΆκ°ν©λλ€.
Input Schema
{
"type": "object",
"properties": {
"mock_id": {
"type": "string",
"description": "λͺ©μ
μλ² ID"
},
"method": {
"type": "string",
"description": "HTTP λ©μλ",
"enum": [
"GET",
"POST",
"PUT",
"PATCH",
"DELETE"
]
},
"path": {
"type": "string",
"description": "API κ²½λ‘ (μ: /users/{id})"
},
"status": {
"type": "integer",
"description": "HTTP μν μ½λ (κΈ°λ³Έ: 200)",
"default": 200
},
"response": {
"type": "object",
"description": "λ°νν μλ΅ JSON κ°μ²΄"
},
"headers": {
"type": "object",
"description": "μΆκ° μλ΅ ν€λ (μ ν)"
}
},
"required": [
"mock_id",
"method",
"path"
]
}π’get_mock_logs(mock_id, limit)
λͺ©μ μλ²μ λ€μ΄μ¨ μμ² λ‘κ·Έλ₯Ό μ‘°νν©λλ€.
Input Schema
{
"type": "object",
"properties": {
"mock_id": {
"type": "string",
"description": "λͺ©μ
μλ² ID"
},
"limit": {
"type": "integer",
"description": "μ΅λ λ‘κ·Έ μ (κΈ°λ³Έ: 50, μ΅λ: 100)",
"default": 50
}
},
"required": [
"mock_id"
]
}Community
Evidence