curl -X GET "https://api.example.com/api/mcp/resource?id=mcp_abc123&uri=file:///data/config.json" \
-H "Authorization: Bearer YOUR_API_KEY"
const params = new URLSearchParams({
id: 'mcp_abc123',
uri: 'file:///data/config.json'
});
const response = await fetch(
`https://api.example.com/api/mcp/resource?${params}`,
{
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
}
);
const data = await response.json();
import requests
response = requests.get(
'https://api.example.com/api/mcp/resource',
headers={'Authorization': 'Bearer YOUR_API_KEY'},
params={
'id': 'mcp_abc123',
'uri': 'file:///data/config.json'
}
)
data = response.json()
{
"success": true,
"result": {
"uri": "file:///data/config.json",
"mimeType": "application/json",
"content": {
"apiKey": "***",
"environment": "production",
"features": {
"auth": true,
"logging": true
}
}
}
}
{
"success": false,
"message": "Resource not found"
}
Server Capabilities
Read MCP Resource
Retrieves the content of a specific resource by URI
GET
/
api
/
mcp
/
resource
curl -X GET "https://api.example.com/api/mcp/resource?id=mcp_abc123&uri=file:///data/config.json" \
-H "Authorization: Bearer YOUR_API_KEY"
const params = new URLSearchParams({
id: 'mcp_abc123',
uri: 'file:///data/config.json'
});
const response = await fetch(
`https://api.example.com/api/mcp/resource?${params}`,
{
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
}
);
const data = await response.json();
import requests
response = requests.get(
'https://api.example.com/api/mcp/resource',
headers={'Authorization': 'Bearer YOUR_API_KEY'},
params={
'id': 'mcp_abc123',
'uri': 'file:///data/config.json'
}
)
data = response.json()
{
"success": true,
"result": {
"uri": "file:///data/config.json",
"mimeType": "application/json",
"content": {
"apiKey": "***",
"environment": "production",
"features": {
"auth": true,
"logging": true
}
}
}
}
{
"success": false,
"message": "Resource not found"
}
Query Parameters
string
required
MCP server ID
string
required
Resource URI to read
Response
boolean
Whether the request was successful
object
Resource content and metadata. The structure depends on the resource type and may include fields like
content, mimeType, and other resource-specific data.curl -X GET "https://api.example.com/api/mcp/resource?id=mcp_abc123&uri=file:///data/config.json" \
-H "Authorization: Bearer YOUR_API_KEY"
const params = new URLSearchParams({
id: 'mcp_abc123',
uri: 'file:///data/config.json'
});
const response = await fetch(
`https://api.example.com/api/mcp/resource?${params}`,
{
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
}
);
const data = await response.json();
import requests
response = requests.get(
'https://api.example.com/api/mcp/resource',
headers={'Authorization': 'Bearer YOUR_API_KEY'},
params={
'id': 'mcp_abc123',
'uri': 'file:///data/config.json'
}
)
data = response.json()
{
"success": true,
"result": {
"uri": "file:///data/config.json",
"mimeType": "application/json",
"content": {
"apiKey": "***",
"environment": "production",
"features": {
"auth": true,
"logging": true
}
}
}
}
{
"success": false,
"message": "Resource not found"
}
⌘I

