Token导航 LogoToken导航TokenDH.com
Fairarena MCP Server logo
搜索检索stdio官方级别未说明来源级核验

Fairarena MCP Server

MCP Server

FairArena MCP Server 是一个生产级的模型上下文协议服务器,使用Pinecone和Google Gemini嵌入技术提供语义搜索功能,用于检索FairArena文档。

工具数

5

提示词数

0

GitHub Stars

0

资源数

0
搜索高性能TypeScriptClaude可观测性Claude DesktopClaudeCursor

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

FairArena

提供方

FairArena

最后核验

2026/5/17 20:22

运行时

Docker

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

docker run -p 3001:3001 --env-file .env fairarena-mcp-server

详细介绍


FairArena Documentation MCP Server

A production-grade Model Context Protocol (MCP) server for searching and retrieving FairArena documentation using semantic search powered by Pinecone and Google Gemini embeddings.

MCP Server Status TypeScript

🚀 Features

  • Semantic Search: Uses Google Gemini embeddings and Pinecone vector database for accurate, context-aware documentation retrieval.
  • Enterprise-Grade Security:

- API Key authentication (supports client-side keys). - Rate limiting (per IP and per API key). - Secure headers and CORS configuration. - Zod-based request validation.

  • Robustness & Reliability:

- Circuit breakers for external services (Pinecone, Gemini). - Smart retries with exponential backoff. - LRU Caching for high-performance responses. - Graceful shutdown and lifecycle management.

  • Observability:

- Structured JSON logging (Winston) with sensitive data redaction. - Prometheus metrics endpoint (/health/metrics). - Comprehensive health checks (/health, /health/live, /health/ready).

  • Modern Architecture:

- Built on Express with SSE (Server-Sent Events) transport. - Fully typed with TypeScript strict mode. - Modular, maintainable codebase.

🛠️ Architecture

flowchart TB
    Client["MCP Client
(Claude/Cursor)"] --> |SSE| Server[MCP Server]
    Server --> |Auth & Rate Limit| Middleware
    Middleware --> |Query| Core
    Core --> |Text| Embedding[Google Gemini]
    Core --> |Vector| VectorDB[Pinecone]
    Core --> |Cache| Redis[(Memory Cache)]

📦 Installation

  1. Clone the repository:
   git clone https://github.com/FairArena/FairArena-MCP-Server.git
   cd FairArena-MCP-Server
  1. Install dependencies:
   pnpm install
  1. Configure environment:

Copy .env.example to .env and fill in your credentials.

   cp .env.example .env

Required Variables: - PINECONE_API_KEY: Your Pinecone API key. - PINECONE_DEVELOPER_INDEX: Index name for dev docs. - PINECONE_DEVELOPER_HOST: Host URL for dev index. - PINECONE_DOCS_INDEX: Index name for user docs. - PINECONE_DOCS_HOST: Host URL for user index. - EMBEDDING_DIMENSION: Dimension of your vectors (e.g., 768).

Optional Variables: - GOOGLE_GEMINI_API_KEY: Fallback server-side API key (clients should provide their own). - PORT: Server port (default: 3001). - LOG_LEVEL: Logging level (info, debug, error).

🏃‍♂️ Running the Server

Development

pnpm dev

Starts the server in watch mode with pretty logs.

Production

pnpm build
pnpm start

Starts the optimized build with JSON logging key component integration.

🔌 Client Configuration

Claude Desktop / Cursor

Add the following to your MCP settings file (e.g., ~/Library/Application Support/Claude/claude_desktop_config.json on macOS or %APPDATA%/Claude/claude_desktop_config.json on Windows):

{
  "mcpServers": {
    "fairarena-docs": {
      "command": "node",
      "args": ["path/to/FairArena-MCP-Server/dist/http-server.js"],
      "env": {
        "PINECONE_API_KEY": "your-key-here",
        // ... other env vars
      }
    }
  }
}

OR (Recommended) - Connect via HTTP:

If you are running the server separately (e.g., on a cloud provider or localhost:3001), use the SSE transport configuration. See mcp-config.example.json for a complete template.

📚 API Endpoints

MethodEndpointDescription
GET/mcp/sseSSE connection endpoint for MCP clients.
POST/mcp/messagesMessage endpoint for MCP session interactions.
GET/healthFull health check status.
GET/health/metricsPrometheus metrics.
POST/api/searchStandalone REST API for semantic search.

🚢 Deployment

Docker

  1. Build image:
   docker build -t fairarena-mcp-server .
  1. Run container:
   docker run -p 3001:3001 --env-file .env fairarena-mcp-server

Railway / Vercel / Cloud

This server is stateless and ready for serverless or containerized deployment.

  • Port: Make sure to expose the port defined in PORT (default 3001).
  • Health Check: Configure your load balancer to check /health/live.
  • Persistence: No persistent storage required (uses Pinecone external DB).

🛡️ Security Best Practices

  1. API Keys: Clients should provide their own Google Gemini API Key via the X-Gemini-Api-Key header.
  2. TLS: Always run behind a reverse proxy (Nginx, Cloudflare) with HTTPS in production.
  3. Rate Limiting: Adjust src/middleware/rate-limiter.ts values based on your traffic needs.

🧪 Testing

# Check types
pnpm typecheck

📄 License

This project is licensed under the Proprietary License — see the LICENSE file for details.


🌐 Website • 💻 GitHub • 📧 Support

Built with ❤️ by the FairArena Team

目录标签

目录标签

搜索高性能TypeScriptClaude可观测性语义搜索本地部署文档检索企业级安全

支持客户端

Claude DesktopClaudeCursor

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

api-key

运行时(runtime,运行环境)

Docker

工具数量(toolCount,工具数)

5

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdioapi-key部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP