MCP Server · NestJS · Claude AI

OpenPlatform

A production-ready NestJS server that exposes Claude AI capabilities through the Model Context Protocol — connect any MCP client in seconds.


Connect in 3 steps

OpenPlatform is a hosted service. You don't install anything — you just get an API key and point your MCP client to the server.

1

Request your API key

Contact the administrator to get your personal API key. It looks like op_a3f9c2e1... and grants you access to all MCP tools.

2

Add the server to your MCP client

Open your MCP client config and add OpenPlatform using your key. See the configuration examples below for Claude Desktop and Cursor.

3

Start using Claude tools

Restart your client. OpenPlatform will appear in the tools list — you can now call ask_claude and ask_claude_with_context directly from your AI assistant.


Client Setup

Replace YOUR_API_KEY with the key you received. No installation required on your machine.

🔑

Don't have a key yet?

Contact the administrator to get your personal API key. Without it, all requests to /mcp/* will return 401 Unauthorized.

The fastest way — no config files needed. The API key goes directly in the URL.

1

Open the connectors page

Go to claude.ai/customize/connectors ↗

2

Click the + button to add a connector

A dialog opens asking for a name and a server URL.

3

Fill in the fields

Set Nome to OpenPlatform and paste the URL below as URL del server MCP remoto. Your API key is included in the URL — no OAuth needed.

URL del server MCP remoto
__SERVER_URL__/mcp?api_key=YOUR_API_KEY
4

Save and start chatting

OpenPlatform will appear in your connectors list. Open a new conversation and the MCP tools will be available.

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

claude_desktop_config.json
{
  "mcpServers": {
    "openplatform": {
      "url": "__SERVER_URL__/mcp",
      "headers": {
        "x-api-key": "YOUR_API_KEY"
      }
    }
  }
}

Open Settings → MCP and add a new server, oppure crea il file .cursor/mcp.json nella root del tuo progetto:

.cursor/mcp.json
{
  "mcpServers": {
    "openplatform": {
      "url": "__SERVER_URL__/mcp",
      "headers": {
        "x-api-key": "YOUR_API_KEY"
      }
    }
  }
}
401 Missing API key — add x-api-key to your headers
403 Invalid or revoked key — contact the administrator

Available Tools

OpenPlatform exposes two tools that Claude can call to interact with the underlying AI model.

🤖

ask_claude

Send any message to Claude AI and receive a complete response. Best for questions, analysis, code generation, and general tasks.

message string required The message to send
max_tokens number Max response tokens (default 16000)
🎯

ask_claude_with_context

Send a message with a custom system prompt. Use when you need Claude to act in a specific role, with constraints, or domain-specific context.

message string required The message to send
system_prompt string required System-level context or role
max_tokens number Max response tokens (default 16000)

HTTP Endpoints

When running in HTTP mode (npm run start), the server exposes these endpoints at http://localhost:3000.

POST /mcp/message Send a message to Claude through the MCP tool layer. Supports streaming via SSE.
GET /mcp/tools List all available MCP tools and their schemas.
GET /mcp/status Health check — returns server status, model, and available tools.
curl
curl -X POST __SERVER_URL__/mcp \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{
    "tool": "ask_claude_with_context",
    "message": "Review this code for security issues",
    "systemPrompt": "You are a senior security engineer.",
    "stream": false
  }'

Built with

NestJS TypeScript @anthropic-ai/sdk @modelcontextprotocol/sdk claude-opus-4-6 Zod Node.js SSE Streaming