Skip to main content
Glama

Xiaohongshu MCP Server

by billyangbc
Dockerfile1.02 kB
# 使用官方Node.js运行时镜像 FROM node:18-alpine # 设置工作目录 WORKDIR /app # 安装系统依赖 RUN apk add --no-cache \ chromium \ nss \ freetype \ freetype-dev \ harfbuzz \ ca-certificates \ ttf-freefont \ && rm -rf /var/cache/apk/* # 设置Playwright环境变量 ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \ PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser # 复制package文件 COPY package*.json ./ # 安装依赖 RUN npm ci --only=production && npm cache clean --force # 复制应用代码 COPY . . # 创建必要的目录 RUN mkdir -p /app/data /app/logs /app/uploads /app/database # 设置权限 RUN chown -R node:node /app # 切换到非root用户 USER node # 暴露端口 EXPOSE 3000 3001 # 健康检查 HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ CMD node -e "require('http').get('http://localhost:3000/health', (res) => { process.exit(res.statusCode === 200 ? 0 : 1) })" || exit 1 # 启动应用 CMD ["npm", "start"]

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/billyangbc/xiaohongshu-mcp-nodejs'

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