rorystandley/example-mcp-server
If you are the rightful owner of example-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
This document provides a structured overview of a minimal MCP-compatible demo server designed to proxy calls to Azure API Management (APIM) endpoints.
MCP Demo Server
This is a minimal MCP-compatible demo server that proxies calls to our Azure API Management (APIM) endpoints — for example, Allocate APIs.
Modes
This server supports three modes:
- Local stdio mode - For VS Code Copilot integration
- HTTP API mode - Simple REST API for any HTTP client
- SSE MCP mode - For ChatGPT and other remote MCP clients
Live Demo
You can deploy instantly to Render:
Using with ChatGPT
Once deployed to Render, you can connect ChatGPT to your MCP server:
-
Go to ChatGPT Settings → Personalization → Custom Instructions (or MCP Servers if available)
-
Add a new MCP server with:
- Name:
Allocate Grades API - URL:
https://example-mcp-server.onrender.com/sse - Type:
SSE
- Name:
-
ChatGPT can now call your
listGradestool!
HTTP API Endpoints
Once deployed:
GET /→ Server info and statusGET /sse→ MCP SSE endpoint (for ChatGPT and MCP clients)POST /message→ SSE message endpointGET /mcp/tools→ List available MCP tools (simple API)POST /mcp/call→ Call a tool (simple API)
Example: Simple HTTP API
# List all grades (minimal format)
curl -X POST https://example-mcp-server.onrender.com/mcp/call \
-H "Content-Type: application/json" \
-d '{"tool":"listGrades"}'
# List all grades (full format)
curl -X POST https://example-mcp-server.onrender.com/mcp/call \
-H "Content-Type: application/json" \
-d '{"tool":"listGrades","arguments":{"full":true}}'
Local Development
For VS Code Copilot integration, configure .vscode/mcp.json:
{
"servers": {
"example-mcp-server": {
"type": "stdio",
"command": "node",
"args": ["./server.js"],
"env": {
"ALLOCATE_API_URL": "https://apim-acacium-dev.azure-api.net",
"APIM_SUBSCRIPTION_KEY": "your-key-here"
}
}
}
}
Then reload VS Code window to activate the MCP server.