Cover image
Try Now
2025-04-14

MCP接入点是一种轻巧的网关工具,旨在用MCP(模型上下文协议)客户端启动传统的HTTP服务。它启用MCP客户端与现有HTTP服务之间的无缝交互,而无需对服务器端接口代码进行任何修改。

3 years

Works with Finder

1

Github Watches

1

Github Forks

5

Github Stars

MCP Access Point

MCP Access Point is a lightweight gateway tool designed to bridge traditional HTTP services with MCP (Model Context Protocol) clients. It enables seamless interaction between MCP clients and existing HTTP services without requiring any modifications to the server-side interface code.

README in English 简体中文版自述文件

Http to SSE by open

This mode allows clients like Cursor Desktop to communicate to a remote server over SSE even though it is not supported natively.

graph LR
    A["Cursor Desktop"] <--> |sse| B["MCP Access Point"]
    B <--> |http| C["Existing Http Server"]

    style A fill:#ffe6f9,stroke:#333,color:black,stroke-width:2px
    style B fill:#e6e6ff,stroke:#333,color:black,stroke-width:2px
    style C fill:#e6ffe6,stroke:#333,color:black,stroke-width:2px

Quick Start

Installation Method

# Install from source  
git clone https://github.com/sxhxliang/mcp-access-point.git  
cd mcp-access-point  
# Pass the openapi.json file path, mcp port number, and upstream service address  
cargo run -- -f openapi_for_demo.json -p 8080 -u localhost:8090
# You can also use the openapi.json of a remote server, such as petstore.swagger.io for demonstration purposes.
cargo run -- -f https://petstore.swagger.io/v2/swagger.json -p 8080 -u localhost:8090
# Use inspector for debugging. First, start the service.  
npx @modelcontextprotocol/inspector@0.8.1 node build/index.js  
# Access http://127.0.0.1:6274/  
# Select "see," fill in 0.0.0.0:8080/sse, and click "connect" to link to the service.  

Breakdown of Arguments:

  1. -f openapi_for_demo.json

    • -f (or --file) specifies the path to the OpenAPI specification file (openapi_for_demo.json).
    • This file defines the API that the MCP (Model Context Protocol) access point will use.
  2. -p 8080

    • -p (or --port) sets the port number (8080) on which the MCP access point will listen for incoming requests.
  3. -u localhost:8090

    • -u (or --upstream) defines the upstream service address (localhost:8090).
    • The MCP access point will forward requests to this address after processing them.

Key Characteristics:

  • Protocol Conversion: Translates between HTTP and MCP protocols bidirectionally
  • Zero Modification: Works with existing HTTP services as-is
  • Client Enablement: Allows MCP clients to consume standard HTTP services
  • Lightweight Proxy: Minimal overhead with clean protocol translation

Running with Docker

Build Docker Image (Optional, if you want to build locally)

# Clone the repository
git clone https://github.com/sxhxliang/mcp-access-point.git
cd mcp-access-point

# Build Docker image
docker build -t kames2025/mcp-access-point:latest .

Pull and Run Docker Container

# Using environment variables for configuration (upstream service running on host)
# Note: Replace /path/to/your/openapi.json with the actual path to your local OpenAPI file
# Note: The upstream address uses host.docker.internal to point to the host machine. If this doesn't work, try the host's LAN IP address.
docker run -d --name mcp-access-point --rm \
  -p 8080:8080 \
  -e port=8080 \
  -e upstream=host.docker.internal:8090 \
  -e openapi_json=/app/config/openapi.json \
  -v /path/to/your/openapi.json:/app/config/openapi.json \
  kames2025/mcp-access-point:latest

# Or specify the openapi_json environment variable directly
docker run -d --name mcp-access-point --rm \
  -p 8080:8080 \
  -e port=8080 \
  -e upstream=host.docker.internal:8090 \
  -e openapi_json=/app/config/openapi.json \
  -v /path/to/your/openapi.json:/app/config/openapi.json \
  kames2025/mcp-access-point:latest

Environment Variables

  • port: MCP access point listening port, default is 8080
  • upstream: Upstream service address, default is localhost:8090
  • openapi_json: Path to the OpenAPI specification file, default is /app/config/openapi.json

The solution is particularly valuable for:

  • Gradually migrating HTTP services to MCP architecture
  • Enabling MCP-based systems to leverage existing HTTP infrastructure
  • Building hybrid systems that need to support both protocols

Example use case: An AI service with MCP-native clients needs to integrate with legacy HTTP-based microservices. The MCP Access Point sits between them, handling protocol translation transparently.

Would you like me to develop any particular aspect of this description further, such as technical architecture or specific protocol conversion details?

相关推荐

  • 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!

  • https://appia.in
  • Siri Shortcut Finder – your go-to place for discovering amazing Siri Shortcuts with ease

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • tomoyoshi hirata
  • Sony α7IIIマニュアルアシスタント

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

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

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

  • ravitemer
  • 一个功能强大的Neovim插件,用于管理MCP(模型上下文协议)服务器

  • patruff
  • Ollama和MCP服务器之间的桥梁,使本地LLMS可以使用模型上下文协议工具

  • pontusab
  • 光标与风浪冲浪社区,查找规则和MCP

  • JackKuo666
  • 🔍使AI助手可以通过简单的MCP接口搜索和访问PYPI软件包信息。

  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • WangRongsheng
  • 🧑‍🚀 llm 资料总结(数据处理、模型训练、模型部署、 o1 模型、mcp 、小语言模型、视觉语言模型)|摘要世界上最好的LLM资源。

    Reviews

    3 (1)
    Avatar
    user_VAEGmOMS
    2025-04-17

    MCP-Access-Point by sxhxliang is a fantastic application that exceeds my expectations. The seamless integration and user-friendly interface make accessing and managing data incredibly efficient. As an enthusiastic user, I highly appreciate the attention to detail and reliability offered by this tool. Highly recommend checking it out!