✨ From vibe coding to vibe deployment. UBOS MCP turns ideas into infra with one message.

Learn more

UBOS Asset Marketplace: Remote MCP Server on Cloudflare (Authless) - Empowering AI Agent Development

In the rapidly evolving landscape of Artificial Intelligence, the Model Context Protocol (MCP) is emerging as a critical component for seamlessly integrating Language Learning Models (LLMs) with external data sources and tools. UBOS, a full-stack AI Agent development platform, recognizes the significance of MCP and offers solutions to streamline its implementation. This document focuses on deploying a remote, authentication-free MCP server on Cloudflare, a powerful approach to enhance your AI agent capabilities.

What is an MCP Server?

At its core, an MCP server acts as an intermediary, a crucial bridge that enables LLMs to access, process, and leverage real-world information. It standardizes the interaction between AI models and external resources, unlocking a world of possibilities beyond the limitations of the model’s initial training data. In essence, MCP empowers AI agents to become more context-aware, adaptable, and capable of tackling complex tasks.

Use Cases for Remote MCP Servers

The ability to deploy an MCP server remotely opens up various compelling use cases, particularly for organizations leveraging AI in dynamic and distributed environments:

  • Enhanced AI Playground Integration: Cloudflare AI Playground becomes significantly more versatile. By connecting to a remote MCP server, you can directly utilize custom tools and data sources within the playground environment, accelerating AI model experimentation and development.
  • Seamless Claude Desktop Integration: Local MCP clients, such as Claude Desktop, can seamlessly connect to the remote MCP server. This allows you to augment Claude’s capabilities with your own tailored tools and functionalities, creating a personalized AI assistant that aligns perfectly with your specific needs.
  • Scalable AI Agent Deployments: Cloudflare Workers provides a robust and scalable platform for hosting your MCP server. This ensures that your AI agents can handle increasing workloads without performance bottlenecks, supporting growing business demands.
  • Simplified Development and Testing: A remote MCP server simplifies the development and testing process by providing a centralized and accessible environment for interacting with AI models and tools. This reduces the complexity of managing local dependencies and configurations.
  • Secure Data Access: While this specific example focuses on an authentication-free deployment, Cloudflare Workers can be configured with robust authentication mechanisms to ensure secure access to sensitive data and resources. This is crucial for production environments where data privacy is paramount.

Key Features and Benefits of the UBOS Asset Marketplace MCP Server

The UBOS Asset Marketplace offers a pre-built solution for deploying a remote MCP server on Cloudflare, providing several key features and benefits:

  • Simplified Deployment: The “Deploy to Workers” button streamlines the deployment process, allowing you to quickly set up your MCP server with minimal configuration. Alternatively, the command-line interface offers a more programmatic approach for advanced users.
  • Customizable Tool Integration: The src/index.ts file allows you to define and integrate your own custom tools using the this.server.tool(...) method. This enables you to tailor the MCP server to your specific application requirements.
  • Authentication-Free Access (Optional): This example provides an authentication-free deployment, making it ideal for rapid prototyping and experimentation. However, UBOS also supports secure deployments with authentication for production environments.
  • Cloudflare Integration: Leveraging Cloudflare Workers ensures scalability, reliability, and global accessibility for your MCP server. This integration also provides access to Cloudflare’s extensive suite of security and performance features.
  • UBOS Platform Compatibility: The MCP server seamlessly integrates with the UBOS platform, allowing you to leverage UBOS’s AI agent orchestration, data connection, and custom AI agent building capabilities.
  • Rapid Prototyping: This authless MCP server is designed for fast experimentation and validation of your ideas.

Getting Started: A Step-by-Step Guide

Deploying the remote MCP server on Cloudflare is a straightforward process:

  1. Deploy via Button: Click the “Deploy to Workers” button. This will guide you through the Cloudflare Workers deployment process.

  2. Access Your Server: Once deployed, your MCP server will be accessible at a URL like remote-mcp-server-authless.<your-account>.workers.dev/sse.

  3. Command-Line Deployment (Alternative): Alternatively, use the following command to create the MCP server on your local machine:

    bash npm create cloudflare@latest – my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless

Customizing Your MCP Server: Adding Your Own Tools

To extend the functionality of your MCP server, you can add your own custom tools. Here’s how:

  1. Edit src/index.ts: Open the src/index.ts file in your project.

  2. Define Tools: Inside the init() method, define each tool using this.server.tool(...). This method allows you to specify the tool’s name, description, and execution logic.

    Example:

    typescript async init() { this.server.tool(“calculate”, “Performs a simple calculation”, async (query: string) => { try { // Implement your calculation logic here const result = eval(query); return result.toString(); } catch (error) { return “Error: Invalid calculation.”; } }); }

Connecting to Cloudflare AI Playground

Integrating your MCP server with the Cloudflare AI Playground is simple:

  1. Go to AI Playground: Navigate to https://playground.ai.cloudflare.com/.
  2. Enter MCP Server URL: Enter your deployed MCP server URL (e.g., remote-mcp-server-authless.<your-account>.workers.dev/sse).
  3. Utilize Your Tools: You can now access and use your custom MCP tools directly from the AI Playground.

Connecting Claude Desktop to Your MCP Server

To connect Claude Desktop to your remote MCP server, follow these steps:

  1. Install mcp-remote: Ensure you have the mcp-remote package installed globally:

    bash npm install -g mcp-remote

  2. Follow Anthropic’s Quickstart: Refer to Anthropic’s Quickstart for initial setup.

  3. Edit Claude Desktop Configuration: In Claude Desktop, go to Settings > Developer > Edit Config.

  4. Update Configuration: Add the following configuration to your config.json file:

    { “mcpServers”: { “calculator”: { “command”: “npx”, “args”: [ “mcp-remote”, “http://localhost:8787/sse” // Replace with your actual MCP server URL ] } } }

  5. Restart Claude: Restart Claude Desktop to apply the changes.

  6. Verify Tool Availability: You should now see your custom MCP tools available within Claude Desktop.

UBOS: The Full-Stack AI Agent Development Platform

UBOS is more than just an asset marketplace; it’s a comprehensive platform designed to empower businesses to build, deploy, and manage AI agents at scale. With UBOS, you can:

  • Orchestrate AI Agents: Seamlessly manage and coordinate multiple AI agents to achieve complex goals.
  • Connect to Enterprise Data: Securely connect your AI agents to your enterprise data sources, enabling them to access the information they need to make informed decisions.
  • Build Custom AI Agents: Create custom AI agents tailored to your specific business requirements using your own LLM models.
  • Develop Multi-Agent Systems: Build sophisticated multi-agent systems that can collaborate and solve problems more effectively than individual agents.

Conclusion: Unlock the Power of MCP with UBOS

The remote MCP server on Cloudflare, available through the UBOS Asset Marketplace, provides a powerful and flexible solution for integrating LLMs with external data and tools. By simplifying deployment, enabling custom tool integration, and providing seamless connectivity with platforms like Cloudflare AI Playground and Claude Desktop, UBOS empowers you to unlock the full potential of AI agents and drive innovation across your organization. Integrate UBOS into your AI strategy to accelerate your journey towards intelligent automation and enhanced decision-making.

This is a good starting point to begin building out a modern AI stack with the UBOS platform. We look forward to seeing what our community will create!

Key benefits of using UBOS:

  • Ease of Use: UBOS simplifies the complexities of AI agent development, making it accessible to a wider audience.
  • Scalability: UBOS is designed to scale with your business needs, ensuring that your AI agents can handle increasing workloads.
  • Security: UBOS provides robust security features to protect your data and ensure the integrity of your AI agents.
  • Flexibility: UBOS is highly customizable, allowing you to tailor the platform to your specific requirements.
  • Cost-Effectiveness: UBOS helps you reduce the cost of AI agent development and deployment.

Featured Templates

View More

Start your free trial

Build your solution today. No credit card required.

Sign In

Register

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.