remote-mcp-creation-foundation

remote-mcp-creation-foundation

0

The project is a Model Context Protocol (MCP) server implementation designed for use with Cursor and other MCP tools. It includes a core server and various clients, providing features such as number addition and currency conversion, and supports deployment on Cloudflare Workers.

DxSure MCP Server and Client Setup

This repository contains a Model Context Protocol (MCP) implementation for use with Cursor and other MCP-compatible tools.

Overview

The project consists of:

  1. my-mcp-server - The core MCP server that hosts tools (deployed to Cloudflare Workers)
  2. mcp-remote-authless - A proxy client that Cursor connects to
  3. mcp-remote-github-oauth - A version that adds GitHub OAuth authentication

Setup Instructions

1. Configure the MCP Client to Connect to Your Remote Server

The MCP Client needs to be configured to connect to your remote MCP server on Cloudflare:

  1. Edit mcp-remote-authless/src/config.ts and set the serverUrl to point to your Cloudflare Worker:

    export const MCP_CONFIG = {
      serverUrl: 'https://dxsure-mcp-server-v2.yourdomain.workers.dev/mcp',
      // other settings...
    };
    
  2. Deploy the client to Cloudflare or run it locally:

    cd mcp-remote-authless
    npm run dev  # For local development
    # OR
    npm run deploy  # To deploy to Cloudflare
    

2. Configure Cursor to Use Your MCP Client

In Cursor, go to Settings and set your MCP server URL to:

If running locally:

http://localhost:8787/mcp

If using the deployed client:

https://your-mcp-client.workers.dev/mcp

Testing Your Setup

After setting up, you can verify your configuration:

  1. Check the client's status page:

    http://localhost:8787/status
    
  2. View the current configuration:

    http://localhost:8787/config
    

Troubleshooting

"No server info found" Error

If you see this error in the logs, it usually means:

  1. Your remote MCP server is not accessible
  2. The MCP client can't reach the MCP server
  3. There's a URL configuration issue

Solutions:

  • Make sure the remote server URL in mcp-remote-authless/src/config.ts is correct
  • Verify that your Cloudflare worker is deployed and running properly
  • Check for any CORS issues if running the client locally
  • Enable debug logging in config.ts to see detailed connection logs

Available Tools

The MCP server provides these tools:

  1. add - Adds two numbers
  2. convertCurrency - Converts currency amounts using exchange rates

Contributing

Feel free to add more tools to the MCP server by modifying the my-mcp-server/src/index.ts file and redeploying your Cloudflare worker.