Cover image
Try Now
2025-03-28

我的MCP服务器POC

3 years

Works with Finder

1

Github Watches

0

Github Forks

0

Github Stars

MCP Server

A modern AI service proxy built with Cloudflare Workers and Hono framework, supporting multiple AI providers including Anthropic Claude and OpenAI.

Features

  • Multi-provider AI service integration (Anthropic Claude, OpenAI)
  • Built on Cloudflare Workers for global edge deployment
  • Fast and efficient request handling with Hono framework
  • Type-safe implementation with TypeScript
  • CORS support for cross-origin requests
  • Health check and provider info endpoints

Prerequisites

  • Node.js (LTS version recommended)
  • npm or pnpm package manager
  • Cloudflare account for deployment
  • API keys for supported AI providers

Installation

  1. Clone the repository
  2. Install dependencies:
pnpm install

Environment Setup

  1. Copy the example environment file:
cp .env.example .env
  1. Configure your environment variables in .env with your API keys and preferences

Development

Start the development server:

pnpm run dev

The server will start in development mode with hot reloading enabled.

Deployment

Deploy to Cloudflare Workers:

pnpm run deploy

API Endpoints

Health Check

  • GET /health
  • Returns server status and configuration

Provider Info

  • GET /api/provider
  • Returns current AI provider and model configuration

MCP API

  • POST /api/mcp
  • Main endpoint for AI service requests
  • Accepts JSON payload with context, query, and options

Project Structure

├── src/
│   ├── controllers/     # Request handlers
│   ├── models/          # Type definitions
│   ├── services/        # AI service implementations
│   └── index.ts         # Main application entry
├── public/             # Static assets
└── wrangler.jsonc      # Cloudflare Workers configuration

License

MIT

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Lists Tailwind CSS classes in monospaced font

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • Yasir Eryilmaz
  • AI scriptwriting assistant for short, engaging video content.

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

  • deemkeen
  • 用电源组合控制您的MBOT2:MQTT+MCP+LLM

  • jae-jae
  • MCP服务器使用剧作《无头浏览器》获取网页内容。

    Reviews

    3 (1)
    Avatar
    user_hPF09wlh
    2025-04-16

    I have been using my-mcp-server for a while and it is an exceptional product! Created by quang-pham-dev, this server handles my MCP applications seamlessly. It is well-documented and the GitHub link (https://github.com/quang-pham-dev/my-mcp-server) provides clear guidance for setup and usage. I highly recommend this server for anyone in need of a reliable and efficient MCP solution.