Back to Home
eztakesin icon

llm-mcp-gateway-rs

Verified Safe

by eztakesin

Overview

An OpenAI Responses API-compatible gateway for LLM applications that integrates local knowledge base (RAG) and database tool-using MCP servers, designed for use with `big-agi.com`.

Installation

Run Command
./target/release/gateway-openai

Environment Variables

  • OPENAI_API_KEY
  • INDEX_DIR
  • DOCS_MCP_COMMAND
  • BIND_ADDR
  • ORACLE_MCP_DIR
  • TNS_ADMIN
  • ORACLE_CONNECTION_STRING

Security Notes

The server employs robust guardrails for SQL tools, including strict allowlisting of commands (only SELECT/WITH, no DML/DDL/PLSQL) and automatic row limits. It also enforces a tool allowlist for MCP tools. Environment variables for spawning MCP servers (`DOCS_MCP_COMMAND`, `ORACLE_MCP_COMMAND`) could pose a risk if misconfigured to arbitrary executables, but are intended for internal components. Network best practices (CORS, PNA, recommendations for DB network isolation and Caddy/Nginx authentication) are noted in the documentation. No hardcoded secrets or 'eval' equivalents were found in the provided code.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassHigh
Avg Tokens5000
Stars0
Forks0
Last Update2026-01-19

Tags

LLM GatewayRAGToolingOpenAI APILocal AI