Back to Home
kuc-arc-f icon

mcp_server_2ex

by kuc-arc-f

Overview

A Next.js remote MCP (Microservices Communication Protocol) server designed for Retrieval Augmented Generation (RAG) search, often integrating with external Rust or Go MCP backend services or directly with Ollama and PostgreSQL for vector embeddings.

Installation

Run Command
npm run dev

Environment Variables

  • GOOGLE_API_KEY
  • PG_USER
  • PG_HOST
  • PG_DATABASE
  • PG_PASSWORD
  • PG_PORT
  • PG_CONNECT_STR
  • MCP_SERVER_PATH
  • API_KEY
  • USER_NAME
  • PASSWORD
  • TEMPLATE_PURCHASE
  • XLS_OUT_DIR

Security Notes

Several Next.js API routes (e.g., `/api/mcp` in `next16_6`, `next16_7`, `next16_8`, `next16_9`, and `/api/chat` in `next16_3`, `next16_4`) lack proper authentication/authorization middleware. Despite the `test-code` including an `Authorization` header, the server-side implementations do not validate it. This exposes critical RAG search and tool-calling functionalities to unauthenticated access. Some `mcp_cli_X` examples implement client-side SPA login but their `/api/chat` endpoints also lack server-side authentication. The `RpcClient.ts` uses `child_process.spawn` to execute external Rust/Go binaries, which is generally safe if `CMD_PATH` is controlled by the deployer, but still represents a potential attack surface if misconfigured or if the external binaries are compromised. The `mcp_3` example does include an API key check, which is a better practice.

Similar Servers

Stats

Interest Score30
Security Score3
Cost ClassMedium
Avg Tokens1000
Stars1
Forks0
Last Update2025-12-03

Tags

Next.jsRAGAISearchJSON-RPC