Get started with DevHub APIs in 3 simple steps
Browse our collection of 5 APIs including Portfolio, Tech Blog, Art Blog, Tech Space, and MCP List Hub.
Learn moreEach API has a unique MCP endpoint URL. Find it in the API documentation or use the playground.
Learn moreSend a JSON-RPC 2.0 POST request to the endpoint with the method you want to call.
Learn moreAll APIs use the Model Context Protocol (MCP) - a standardized JSON-RPC 2.0 interface.
All APIs are hosted on Vercel with 99.99% uptime and global CDN distribution.
Optimized for speed with minimal latency and efficient data transfer.
All DevHub APIs use the MCP (Model Context Protocol) - a JSON-RPC 2.0 based protocol. Here's how to make your first API call:
curl -X POST https://bookchaowalit-portfolio-frontend.vercel.app/api/mcp \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}'const response = await fetch(
'https://bookchaowalit-portfolio-frontend.vercel.app/api/mcp',
{
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
jsonrpc: '2.0',
id: 1,
method: 'tools/list'
})
}
);
const data = await response.json();import requests
response = requests.post(
'https://bookchaowalit-portfolio-frontend.vercel.app/api/mcp',
json={
'jsonrpc': '2.0',
'id': 1,
'method': 'tools/list'
}
)
data = response.json()Initialize the MCP server connection. Returns server capabilities and protocol version.
List all available tools/functions provided by the API server.
Execute a specific tool with parameters. Returns the tool's output or result.
All API responses follow the JSON-RPC 2.0 specification:
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"tools": [
{
"name": "get_projects",
"description": "Get all projects from the portfolio",
"inputSchema": {
"type": "object",
"properties": {}
}
}
]
}
}