MCP Server (Advanced)

Native Claude Desktop integration via Model Context Protocol

Note: Most developers should use the REST API approach. Use MCP only if you specifically want Claude Desktop integration.

What is MCP?

Model Context Protocol (MCP) is a standard for connecting AI assistants to external tools. This approach gives Claude Desktop native access to anytool, but it's more limited than using the API directly in your code.

When to Use MCP

Use MCP if you want to:

  • Use anytool directly in Claude Desktop without writing code
  • Have tools auto-discovered in your AI assistant
  • Avoid managing API keys in your application code

Use the REST API instead if you're:

  • Building a custom LLM application
  • Using frameworks like AI SDK or LangChain
  • Need programmatic control over tool execution

Setup for Claude Desktop

Step 1: Get Your Server URL

Your MCP server URL is:

https://anytoolhq.com/api/mcp/sse

Step 2: Open Claude Desktop Settings

  1. Open Claude Desktop application
  2. Go to Settings → Developer
  3. Click "Edit Config" to open your MCP settings file

Step 3: Add anytool Server

Add the following configuration to your MCP settings file:

{
  "mcpServers": {
    "anytool": {
      "url": "https://anytoolhq.com/api/mcp/sse"
    }
  }
}

Step 4: Restart Claude Desktop

Close and reopen Claude Desktop for the changes to take effect.

Step 5: Authenticate

When Claude Desktop starts, it will prompt you to authenticate with anytool. Follow the OAuth flow to grant Claude Desktop access to your tools.

Setup for Cursor IDE

The setup process for Cursor is similar to Claude Desktop:

  1. Open Cursor settings
  2. Navigate to the MCP section
  3. Add the anytool server URL
  4. Restart Cursor and authenticate

Using Tools via MCP

Once connected, your AI assistant can:

  • Discover all your tools automatically
  • Read tool descriptions and capabilities
  • Execute tools with appropriate input
  • Parse and use tool outputs

You don't need to manually tell the AI about your tools — MCP handles discovery and invocation automatically.

Example Usage

After connecting, you can ask Claude Desktop:

"Generate a QR code for https://example.com"

"Convert 100 Fahrenheit to Celsius"

"Create a secure password"

Claude will automatically use your anytool tools to fulfill these requests.

Security

MCP connections are secure:

  • All communication is encrypted via HTTPS
  • OAuth authentication required
  • You control which applications can access your tools
  • Revoke access anytime from your dashboard

Troubleshooting

See the troubleshooting guide for common MCP connection issues.