A comprehensive platform that provides various utility services through a unified HTTP-based API structure. Access multiple MCP services through a consistent URL pattern and integrate them into your applications.
# List all available services
curl -X GET "https://try-mcp.dev/services"
# Get information about a specific service
curl -X GET "https://try-mcp.dev/services/weather"
# Call a service method directly
curl -X POST "https://try-mcp.dev/services/weather/v1/get_weather_forecast" \
-H "Content-Type: application/json" \
-d '{"location": "Berlin"}'
# Make an MCP request
curl -X POST "https://try-mcp.dev/mcp" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": "1",
"method": "tools/call",
"params": {
"name": "weather_get_weather_forecast",
"arguments": {
"location": "Berlin"
}
}
}'
import requests
import json
# Base URL for the API
base_url = "https://try-mcp.dev"
# List all available services
response = requests.get(f"{base_url}/services")
services = response.json()
print(f"Available services: {services['total_services']}")
# Get information about a specific service
service_name = "weather"
response = requests.get(f"{base_url}/services/{service_name}")
service_info = response.json()
print(f"Service: {service_info['name']} {service_info['version']}")
# Call a service method directly
response = requests.post(
f"{base_url}/services/weather/v1/get_weather_forecast",
json={"location": "Berlin"}
)
result = response.json()
print(result)
# Make an MCP request
mcp_request = {
"jsonrpc": "2.0",
"id": "1",
"method": "tools/call",
"params": {
"name": "weather_get_weather_forecast",
"arguments": {
"location": "Berlin"
}
}
}
response = requests.post(f"{base_url}/mcp", json=mcp_request)
result = response.json()
print(result["result"]["content"][0]["text"])
// Base URL for the API
const baseUrl = "https://try-mcp.dev";
// List all available services
async function listServices() {
const response = await fetch(`${baseUrl}/services`);
const data = await response.json();
console.log(`Available services: ${data.total_services}`);
return data.services;
}
// Get information about a specific service
async function getServiceInfo(serviceName) {
const response = await fetch(`${baseUrl}/services/${serviceName}`);
const data = await response.json();
console.log(`Service: ${data.name} ${data.version}`);
return data;
}
// Call a service method directly
async function callServiceMethod(serviceName, version, method, params) {
const response = await fetch(
`${baseUrl}/services/${serviceName}/${version}/${method}`,
{
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(params)
}
);
return await response.json();
}
// Make an MCP request
async function makeMcpRequest(method, params) {
const mcpRequest = {
jsonrpc: "2.0",
id: "1",
method: method,
params: params
};
const response = await fetch(`${baseUrl}/mcp`, {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(mcpRequest)
});
return await response.json();
}
// Example usage
async function example() {
// Get weather forecast
const result = await makeMcpRequest("tools/call", {
name: "weather_get_weather_forecast",
arguments: {
location: "Berlin"
}
});
console.log(result.result.content[0].text);
}
example();