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.
Getting Started
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.
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.
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.
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.
Configuration
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.
Claude.ai Web
The fastest way — no config files needed. The API key goes directly in the URL.
Open the connectors page
Click the + button to add a connector
A dialog opens asking for a name and a server URL.
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.
__SERVER_URL__/mcp?api_key=YOUR_API_KEY
Save and start chatting
OpenPlatform will appear in your connectors list. Open a new conversation and the MCP tools will be available.
Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"openplatform": {
"url": "__SERVER_URL__/mcp",
"headers": {
"x-api-key": "YOUR_API_KEY"
}
}
}
}
Cursor
Open Settings → MCP and add a new server, oppure crea il file .cursor/mcp.json nella root del tuo progetto:
{
"mcpServers": {
"openplatform": {
"url": "__SERVER_URL__/mcp",
"headers": {
"x-api-key": "YOUR_API_KEY"
}
}
}
}
Error responses
401
Missing API key — add x-api-key to your headers
403
Invalid or revoked key — contact the administrator
MCP Tools
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.
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.
REST API
HTTP Endpoints
When running in HTTP mode (npm run start), the server exposes these endpoints at http://localhost:3000.
Example request
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
}'
Tech Stack