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
npm run devEnvironment 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
mcp-servers
Provides a curated collection of Model Context Protocol (MCP) server configurations to enable AI agents to interact with various developer tools and services.
spring-documentation-mcp-server
A Spring Model Context Protocol (MCP) server providing comprehensive access to Spring ecosystem documentation, migration guides, code examples, language evolution insights, and Initializr metadata for AI agents.
lex
Provides a UK legal research API with advanced search capabilities (semantic, keyword, reference) across legislation, caselaw, amendments, and explanatory notes, optimized for AI agents via MCP integration. It processes and indexes millions of legal documents using hybrid vector search and AI-generated summaries/explanations, supporting large-scale legal data analysis.
mcp-servers
Provides current weather conditions and forecasts from the Open-Meteo API for a given geographical location.