mcp_server
Verified Safeby ombhalodiya45
Overview
An AI assistant backend built with Node.js that processes user chat messages, utilizes Groq's LLM for tool calling, and integrates with custom Model Context Protocol (MCP) endpoints for external tools like weather, time, currency exchange, and Wikipedia summaries.
Installation
node index.jsEnvironment Variables
- GROQ_API_KEY
- WEATHER_API_KEY
- PORT
- EXCHANGE_API_KEY
Security Notes
The project uses environment variables for API keys (dotenv), which is good practice. Input validation for user messages is present. Tool arguments parsed from LLM output are handled with a try-catch block for JSON parsing. Child process spawning (mcp-http-wrapper.mjs) uses `spawn` with explicit arguments, which is safer than `exec`. No obvious direct 'eval' or malicious code patterns were found. However, like all LLM-powered applications, there's an inherent risk of the LLM generating undesirable outputs if not properly contained, and reliance on external APIs always introduces third-party security considerations.
Similar Servers
claude-prompts-mcp
Manages hot-reloadable prompt templates, structured reasoning, and multi-step chain workflows to enhance AI assistant interactions through a Model Context Protocol (MCP) compatible server.
compound-mcp-server
Provides a Model Context Protocol (MCP) server for interacting with Groq models, including compound/meta models, exposing real-time information and code execution capabilities.
mcp-agent-starter-kit
A starter kit for building custom AI agents using the Model Context Protocol (MCP) to connect real-world tools with Large Language Models (LLMs).
twitter-mcp-server
An AI-powered chat application that connects to a Model Context Protocol (MCP) server to execute external tools, demonstrating integration with Google GenAI and the Twitter API.