
membranehq/mcp-server 是从 https://github.com/membranehq/mcp-server. 导入的 MCP 服务器候选
概览
membranehq/mcp-server 是从 https://github.com/membranehq/mcp-server. 导入的 MCP 服务器候选
概述(AI 翻译)
Membrane MCP 服务器是一个模型上下文协议(MCP)服务器,作为工具为 Membrane 上的连接集成提供操作。
这是我们官方的 AI 代理示例,展示了如何在你的应用中使用这个 MCP 服务器。
📋 先决条件
- Node.js(V18或更高)
- 膜账户
⚙️ 安装
🛠️ 地方发展
要在本地运行开发服务器,启动时有:
服务器将在[[T0]上线。 ⚡️
🧪 正在进行测试
🚀 部署
将你自己的MCP服务器实例部署到你选择的任何云托管服务上。
🐳 Docker
该项目包含一个 Dockerfile,便于容器化部署。
🔗 连接MCP服务器
该MCP服务器支持两种传输方式:
| 交通 | 终点 | 状态 |
|---|---|---|
| SSE(服务器发送事件) | /sse |
🔴已弃用 — 在MCP规范中已于2024年11月5日弃用 |
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Membrane MCP Server
The Membrane MCP Server is a Model Context Protocol (MCP) server, it provides actions for connected integrations on Membrane as tools.
Here’s our official AI Agent Example that shows you how to use this MCP server in your application.
📋 Prerequisites
- Node.js (v18 or higher)
- A Membrane account
⚙️ Installation
git clone https://github.com/membranehq/mcp-server.git
cd mcp-server
npm install
npm run build
🛠️ Local Development
To run the development server locally, start it with:
npm run dev
The server will be live at http://localhost:3000 ⚡️
🧪 Running tests
# Run the server in test mode
npm run start:test
# then run tests
npm test
🚀 Deployment
Deploy your own instance of this MCP server to any cloud hosting service of your choice.
🐳 Docker
The project includes a Dockerfile for easy containerized deployment.
docker build -t membrane-mcp-server .
docker run -p 3000:3000 membrane-mcp-server
🔗 Connecting to the MCP server
This MCP server support two transports:
| Transport | Endpoint | Status |
|---|---|---|
| SSE (Server‑Sent Events) | /sse |
🔴 Deprecated — deprecated as of November 5, 2024 in MCP spec |
| HTTP (Streamable HTTP) | /mcp |
🟢 Recommended — replaces SSE and supports bidirectional streaming |
🔐 Authentication
Provide a Membrane access token via query or Authorization header:
?token=ACCESS_TOKEN
Authorization: Bearer ACCESS_TOKEN
SSE (Deprecated)
await client.connect(
new SSEClientTransport(
new URL(
`https:///sse`
)
{
requestInit: {
headers: {
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
},
}
)
);
Streamable HTTP (Recommended)
await client.connect(
new StreamableHTTPClientTransport(
new URL(`https:///mcp`)
{
requestInit: {
headers: {
Authorization: `Bearer ${ACCESS_TOKEN}`,
安装
docker run -p 3000:3000 membrane-mcp-server配置
{
"mcpServers": {
"membrane": {
"url": "https://<HOSTED_MCP_SERVER_URL>/sse?token={ACCESS_TOKEN}"
}
}
}