mcp-access-point

Turn a web server into an MCP server in one click without making any code changes.

GitHub Stars

121

User Rating

Not Rated

Favorites

0

Views

21

Forks

21

Issues

1

Installation
Difficulty
Intermediate
Estimated Time
10-20 minutes
Requirements
Rust: Latest version

Installation

Installation

Prerequisites

Please specify required software and versions:
Rust: Latest version

Installation Steps

1. Clone Repository

bash
git clone https://github.com/sxhxliang/mcp-access-point
cd mcp-access-point

2. Install Dependencies

bash
cargo build --release

3. Start Server

bash
./target/release/mcp-access-point

Troubleshooting

Common Issues

Issue: Server won't start Solution: Check your Rust installation and ensure dependencies are built correctly. Issue: Client cannot connect Solution: Verify that the server's IP address and port are correct.

Configuration

Configuration

Basic Configuration

Server Setup

When starting mcp-access-point, configure as follows:
bash
./target/release/mcp-access-point --http-port 8090 --mcp-port 3000

Advanced Configuration

Environment Variables

Set the following environment variables as needed:
bash
export MCP_SERVER="http://localhost:3000"

Configuration Examples

Basic Configuration

bash
./target/release/mcp-access-point --http-port 8090 --mcp-port 3000

Examples

Examples

Basic Usage

Here are basic usage examples for the MCP server:

Verify Server Startup

bash
./target/release/mcp-access-point --http-port 8090 --mcp-port 3000

Programmatic Usage

rust
// Rust example
use std::net::TcpStream;

fn main() {
    let stream = TcpStream::connect("localhost:3000").unwrap();
    // Send request to MCP service
}

Use Cases

Connecting local HTTP services and remote API services via MCP using Cursor Desktop.
Utilizing existing HTTP APIs as MCP services callable directly from client applications.
Integrating multiple HTTP services for centralized management through the MCP Access Point.
Streaming real-time data to MCP clients using SSE.