MCP Bridge

v1.0.0Developer Toolsstable

这是一个为 Cocos Creator 设计的 MCP (Model Context Protocol) 桥接插件,用于连接外部 AI 工具与 Cocos Creator 编辑器,实现对场景、节点等资源的自动化操作。

aiclaudemcpmcp-servermcp-servers
Share:
926
Stars
0
Downloads
0
Weekly
0/5

What is MCP Bridge?

MCP Bridge is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to 这是一个为 cocos creator 设计的 mcp (model context protocol) 桥接插件,用于连接外部 ai 工具与 cocos creator 编辑器,实现对场景、节点等资源的自动化操作。

这是一个为 Cocos Creator 设计的 MCP (Model Context Protocol) 桥接插件,用于连接外部 AI 工具与 Cocos Creator 编辑器,实现对场景、节点等资源的自动化操作。

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • 这是一个为 Cocos Creator 设计的 MCP (Model Context Protocol) 桥接插件,用于

Use Cases

Cocos Creator editor automation with MCP
AI-powered game development workflow
loopsketch

Maintainer

LicenseMIT
Languagepython
Versionv1.0.0
UpdatedMay 16, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx mcp-bridge

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use MCP Bridge

MCP Bridge is a Docker-based MCP server that exposes a local llama.cpp instance (or any remote llama.cpp-compatible server) through the Model Context Protocol over HTTP with bearer-token authentication. It runs FastMCP behind a Streamable HTTP transport and forwards chat completions to llama.cpp's OpenAI-compatible API, letting MCP clients like Claude Code treat a self-hosted language model as a first-class tool provider. This is useful for teams running air-gapped models or wanting to add private LLM inference as a capability inside their AI assistant workflows.

Prerequisites

  • Docker and Docker Compose installed
  • A running llama.cpp server (local or remote) with its OpenAI-compatible API accessible
  • openssl available to generate a secure API token
  • An MCP-compatible client that supports HTTP transport (e.g., Claude Code CLI)
1

Clone the repository

Download the project source which includes the Dockerfile, docker-compose.yml, and .env.example configuration template.

git clone https://github.com/loopsketch/mcp-bridge.git
cd mcp-bridge
2

Create and configure the .env file

Copy the example environment file and set a secure random API token. Optionally point LLAMA_CPP_SERVER_URL to a remote llama.cpp instance if you are not running one locally.

cp .env.example .env
echo "MCP_API_TOKEN=$(openssl rand -hex 32)" >> .env
3

Review key environment variables

The .env file controls transport, host, port, and llama.cpp connection settings. Edit as needed before starting the service.

# Key variables in .env:
# MCP_TRANSPORT=streamable-http
# FASTMCP_HOST=0.0.0.0
# FASTMCP_PORT=8000
# LLAMA_CPP_SERVER_URL=http://localhost:8080
# LLAMA_CPP_SERVER_MODEL=your-model-name
# MCP_API_TOKEN=<generated above>
# MAX_INPUT_CHARS=200000
4

Start the service

Build and launch the Docker container in detached mode. The MCP endpoint will be available at http://localhost:8000/mcp.

docker compose up -d --build
5

Verify the endpoint

Check that the server is running and authentication is required. A 406 response to an authenticated request is expected behavior indicating the server is online.

curl -i -H "Authorization: Bearer $MCP_API_TOKEN" http://localhost:8000/mcp
6

Register with your MCP client

Add the HTTP-transport MCP server to Claude Code or another MCP-compatible client using the generated token.

claude mcp add --transport http local-agent-helper \
  http://localhost:8000/mcp \
  --header "Authorization: Bearer $MCP_API_TOKEN"

MCP Bridge Examples

Client configuration

HTTP-transport MCP servers require a URL and auth header rather than a command/args block. Use the Claude Code CLI to register or add the entry manually to your config.

# Claude Code CLI registration:
claude mcp add --transport http local-agent-helper \
  http://localhost:8000/mcp \
  --header "Authorization: Bearer YOUR_MCP_API_TOKEN"

Prompts to try

Once connected, the local llama.cpp model is available as a tool provider through your MCP client.

- "Use the local model to summarize this document"
- "Ask the local-agent-helper to generate a Python function for binary search"
- "What models are currently available through the local llama.cpp server?"

Troubleshooting MCP Bridge

Docker container starts but returns connection refused when calling the MCP endpoint

Ensure FASTMCP_HOST is set to 0.0.0.0 (not 127.0.0.1) in the .env file so the server listens on all interfaces inside the container, and that port 8000 is not blocked by a local firewall.

Requests to llama.cpp fail with a timeout or connection error

Verify LLAMA_CPP_SERVER_URL points to the correct address reachable from inside Docker. If llama.cpp is running on the host machine, use 'http://host.docker.internal:8080' instead of 'http://localhost:8080'.

Authentication fails with 401 Unauthorized

Make sure MCP_API_TOKEN in the .env file matches the token passed in the Authorization header. The token must be at least 32 characters. Rebuild the container after changing .env with 'docker compose up -d --build'.

Frequently Asked Questions about MCP Bridge

What is MCP Bridge?

MCP Bridge is a Model Context Protocol (MCP) server that 这是一个为 cocos creator 设计的 mcp (model context protocol) 桥接插件,用于连接外部 ai 工具与 cocos creator 编辑器,实现对场景、节点等资源的自动化操作。 It connects AI assistants to external tools and data sources through a standardized interface.

How do I install MCP Bridge?

Follow the installation instructions on the MCP Bridge GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with MCP Bridge?

MCP Bridge works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is MCP Bridge free to use?

Yes, MCP Bridge is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "mcp-bridge": { "command": "npx", "args": ["-y", "mcp-bridge"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use MCP Bridge?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides