Skip to content

Connecting MCP Servers to AI Clients

This guide explains how to connect Universal API MCP servers to Claude Desktop, Claude Code, Cline (VS Code), and other MCP-compatible clients.

Authentication

All MCP server tools that modify data require a Bearer token. Pass it in the connection headers:

Authorization: Bearer uapi_ut_XXXX_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Get your token at universalapi.co/keysCredentialsCreate Access Token.

Public vs Authenticated Access

  • Without token: You can list and view public resources, execute public actions, and use public MCP server tools
  • With token: Full access including creating/updating/deleting resources, accessing private resources, agent chat, knowledge storage, and user account operations

Quick Start: Universal API Full Server

The universalapi-full MCP server provides 47 tools, 2 resources, and 2 prompts for managing the entire Universal API platform — Actions, MCP Servers, Agents, Search, Knowledge, Keys, Tokens, Logs, Subscriptions, and Author Dashboard.

Endpoint: https://api.universalapi.co/mcp/96303dd2-d86f-4df0-ad94-1b8bce625535

Add to your cline_mcp_settings.json:

json
{
  "universalapi-full": {
    "type": "streamableHttp",
    "url": "https://api.universalapi.co/mcp/96303dd2-d86f-4df0-ad94-1b8bce625535",
    "headers": {
      "Authorization": "Bearer uapi_ut_your-token-here"
    },
    "autoApprove": ["get_platform_info", "list_actions", "list_agents", "list_mcp_servers", "search_resources"]
  }
}

Config file locations:

  • macOS: ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
  • Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
  • Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

After saving, reload VS Code (Cmd+Shift+P → "Reload Window").

Claude Desktop

Add to your Claude Desktop config:

json
{
  "mcpServers": {
    "universalapi-full": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://api.universalapi.co/mcp/96303dd2-d86f-4df0-ad94-1b8bce625535"],
      "env": {
        "AUTHORIZATION": "Bearer uapi_ut_your-token-here"
      }
    }
  }
}

Config file locations:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Restart Claude Desktop after editing.

Claude Code (CLI)

Add to ~/.claude/settings.json or your project's .claude/settings.json:

json
{
  "mcpServers": {
    "universalapi-full": {
      "url": "https://api.universalapi.co/mcp/96303dd2-d86f-4df0-ad94-1b8bce625535",
      "headers": {
        "Authorization": "Bearer uapi_ut_your-token-here"
      }
    }
  }
}

Verify with the /mcp command in Claude Code.

curl (Testing)

bash
# List all tools
curl -s -X POST "https://api.universalapi.co/mcp/96303dd2-d86f-4df0-ad94-1b8bce625535" \
  -H "Authorization: Bearer uapi_ut_your-token" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'

# Call a tool
curl -s -X POST "https://api.universalapi.co/mcp/96303dd2-d86f-4df0-ad94-1b8bce625535" \
  -H "Authorization: Bearer uapi_ut_your-token" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"search_resources","arguments":{"query":"weather forecast","limit":3}}}'

Available Tools (47)

The universalapi-full MCP server provides tools organized by category:

Search (2 tools)

ToolDescription
search_resourcesSemantic search across actions, MCP servers, agents, and tools
search_knowledgeSearch your uploaded knowledge files

Actions (7 tools)

ToolDescription
list_actionsList actions with pagination and filters
get_actionGet action details by UUID
get_action_by_slugGet action by slug (e.g., snowtimber/get-current-time)
execute_actionExecute an action with parameters
create_actionCreate a new action
update_actionUpdate an existing action
delete_actionDelete an action

MCP Servers (6 tools)

ToolDescription
list_mcp_serversList MCP servers
get_mcp_serverGet server details by UUID
get_mcp_server_by_slugGet server by slug
create_mcp_serverCreate a new MCP server
update_mcp_serverUpdate an existing server
delete_mcp_serverDelete a server

Agents (8 tools)

ToolDescription
list_agentsList AI agents
get_agentGet agent details by UUID
get_agent_by_slugGet agent by slug
create_agentCreate a new agent
update_agentUpdate an existing agent
delete_agentDelete an agent
chat_with_agentSend a message and get a response
list_agent_conversationsList conversations for an agent
get_agent_conversationGet full conversation history

User & Account (4 tools)

ToolDescription
get_user_infoGet profile, credits, subscription tier
get_user_creditsGet credit balance
set_user_aliasSet your username/alias
get_subscriptionGet subscription details

Author Dashboard (2 tools)

ToolDescription
get_author_earningsRevenue breakdown by resource
get_author_resourcesAll authored resources with metrics

Access Tokens (3 tools)

ToolDescription
create_access_tokenCreate a new Bearer token
list_access_tokensList your tokens
revoke_access_tokenRevoke a token

Third-Party Keys (3 tools)

ToolDescription
list_third_party_keysList stored API keys
store_third_party_keyStore a key (OpenAI, SerpAPI, etc.)
check_third_party_keyCheck if a key exists

Logs (3 tools)

ToolDescription
get_user_logsUsage logs with filtering
get_action_logsLogs for a specific action
get_request_logDetailed log for a request

Knowledge Storage (6 tools)

ToolDescription
list_knowledge_filesList files and folders
get_knowledge_upload_urlGet presigned upload URL
get_knowledge_download_urlGet presigned download URL
create_knowledge_folderCreate a folder
delete_knowledge_fileDelete a file
delete_knowledge_folderDelete a folder

OAuth (1 tool)

ToolDescription
get_oauth_authorize_urlStart OAuth flow (Google, Microsoft, GitHub)

Platform (1 tool)

ToolDescription
get_platform_infoComprehensive platform documentation

Available Resources (2)

MCP resources provide data that AI clients can read as context:

ResourceURIDescription
Platform Infouniversalapi://platform-infoPlatform metadata, endpoints, auth guide, subscription tiers
User Creditsuniversalapi://user/{userId}/creditsUser credit balance (use get_user_credits tool for authenticated access)

Available Prompts (2)

MCP prompts are guided templates that help AI assistants create resources:

PromptArgumentsDescription
create-mcp-serverserverName, toolDescriptionComplete MCP server template with tools, resources, and prompts
create-agentagentName, agentPurposeComplete Strands agent template with model config and MCP tool usage

Built-in MCP Servers

Universal API provides these built-in MCP servers:

ServerSlugToolsDescription
Universal API Fullsnowtimber/universalapi-full47 tools, 2 resources, 2 promptsFull platform access
Echo5 tools, 2 resources, 2 promptsTesting and reference implementation
DocHoundsnowtimber/dochoundDocumentation search toolsSearch web documentation
Google Suitesnowtimber/google-suite-universalapi9 toolsGmail, Drive, Calendar
AWSsnowtimber/aws-mcp-proxy-universalapiAWS service toolsAWS API access

Connecting Your Own MCP Server

Any MCP server you create on Universal API gets an endpoint URL:

https://api.universalapi.co/mcp/{serverId}

Or by slug:

https://api.universalapi.co/mcp-admin/s/{owner}/{slug}

Use the same connection patterns shown above — just replace the server ID.

Troubleshooting

Server Not Connecting

  1. Verify the URL is correct
  2. Test with curl:
    bash
    curl -X POST "https://api.universalapi.co/mcp/your-server-id" \
      -H "Content-Type: application/json" \
      -H "Accept: application/json, text/event-stream" \
      -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"test","version":"1.0.0"}}}'
  3. Check for JSON syntax errors in your config file

Tools Not Appearing

  1. Run /mcp in Claude Code to verify connection
  2. In Cline, check the MCP servers panel (server icon in sidebar)
  3. Verify your createMcpServer function returns the server correctly

Authentication Errors

  1. Ensure your Bearer token starts with uapi_ut_
  2. Check the token hasn't been revoked
  3. Verify the Authorization header format: Bearer uapi_ut_XXXX_...

Next Steps

Universal API - The agentic entry point to the universe of APIs