Back to Home
dannycowles icon

MCP-Server

by dannycowles

Overview

Interactive command-line chat application integrating with Anthropic AI models, providing document retrieval, command-based prompts, and extensible tool integrations via the MCP protocol.

Installation

Run Command
uv run main.py

Environment Variables

  • ANTHROPIC_API_KEY
  • CLAUDE_MODEL
  • DB_HOST
  • DB_NAME
  • DB_USER
  • DB_PASSWORD
  • USE_UV

Security Notes

The `mcp_server.py` exposes `read_file` and `edit_file` tools that allow the AI (and potentially a malicious user through crafted prompts) to read and write arbitrary files on the system where the server is running. This is a critical vulnerability that could lead to information disclosure or remote code execution. Database credentials are handled via environment variables, and SQL queries use parameterized statements, which is good practice to prevent SQL injection.

Similar Servers

Stats

Interest Score0
Security Score3
Cost ClassMedium
Avg Tokens1500
Stars0
Forks0
Last Update2025-12-03

Tags

AI ChatbotAnthropicCLITool-useDocument RetrievalMCPPython