Skip to main content
Glama

mcp服务器

初始化

根据您的首选环境选择以下初始化方法之一:

Node 环境(推荐)

初始化 Node 环境(安装依赖项、构建服务器并配置 MCP 设置):

make node-init

Docker 环境

初始化 Docker 环境(构建 Docker 镜像并配置 MCP 设置):

make docker-init

Related MCP server: MCP Remote Server

发展

使用 Node(推荐)

要使用 Node 构建并运行服务器:

# Build the server make node-build # Configure the server make node-config

使用 Docker

要使用 Docker 构建并运行服务器:

# Build the Docker image make docker-build # Run the Docker container make docker-run # Stop the Docker container make docker-stop # Clean up Docker resources make docker-clean

MCP 设置

运行make node-config时,MCP 设置会自动刷新。如果您需要手动刷新 MCP 设置,请执行以下操作:

make mcp-refresh

运行服务器后,您需要配置 MCP 设置:

  1. 打开你的 IDE 设置

  2. 导航至 MCP 配置部分

  3. 使用以下设置添加新的 MCP 服务器:

    • 名称:MCP 服务器

    • 版本:1.0.0

    • 路径:您构建的服务器可执行文件的路径

该项目是使用 bun v1.2.5 中的bun init创建的。Bun 是一个快速的一体化 JavaScript 运行时。

示例-mcp-服务器

-
security - not tested
F
license - not found
-
quality - not tested

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/JeongJaeSoon/sample-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server