API Request Example
Learn how to make API requests to MCP server tools
Assumptions:
You have already obtained an access token from your user
Your access token has access to the necessary scopes to make API requests
Introduction
BlueNexus provides a proxy API for interacting with Model Context Protocol (MCP) servers. MCP servers expose tools, resources, and prompts that can be accessed by your application.
Key Features:
RESTful API over HTTP
Public access for listing MCP servers
Authenticated access for tool operations
Support for multiple MCP servers (Google Workspace, Notion, Slack, and more)
List Available MCP Servers
List all MCP servers available through BlueNexus. This endpoint supports both public and authenticated access.
Public Access (No Token Required)
Returns basic information about available MCP servers:
// Import dependencies
import fetch from "node-fetch";
// No authentication required for basic server list
const response = await fetch("https://api.bluenexus.ai/api/v1/mcps");
const data = await response.json();
console.log("Available MCP servers:");
for (const server of data.data) {
console.log(`- ${server.slug}: ${server.label}`);
console.log(` URL: ${server.url}`);
}
// Example response:
// {
// "data": [
// {
// "slug": "google-workspace",
// "label": "Google Workspace",
// "url": "https://api.bluenexus.ai/api/v1/mcps/google-workspace"
// },
// {
// "slug": "notion",
// "label": "Notion",
// "url": "https://api.bluenexus.ai/api/v1/mcps/notion"
// },
// {
// "slug": "slack",
// "label": "Slack",
// "url": "https://api.bluenexus.ai/api/v1/mcps/slack"
// }
// ],
// "pagination": {
// "page": 1,
// "limit": 20,
// "total": 9,
// "pages": 1,
// "hasNext": false,
// "hasPrev": false
// }
// }Authenticated Access (With Token)
Returns additional information including activation status and full URLs:
List Tools from an MCP Server
Retrieve all available tools from a specific MCP server. Requires authentication.
Example: Google Workspace Tools
Example: Notion Tools
Call an MCP Server Tool
Execute a tool on an MCP server. Requires authentication.
Example: List Gmail Labels (Google Workspace)
Example: Search Notion Workspace
Example: Create Calendar Event (Google Workspace)
Authentication Requirements
GET /api/v1/mcps
No (optional)
Public: slug, label, url
Authenticated: slug, label, isActive, url
GET /api/v1/mcps/{serverId}/tools
Yes
List of available tools
POST /api/v1/mcps/{serverId}/tools/{toolName}
Yes
Tool execution result
Last updated

