Back to Home
gmunumel icon

mcp-browse-me

by gmunumel

Overview

A simple Model Context Protocol (MCP) 'Hello World' application demonstrating basic client-server communication with an AI agent capable of using tools and maintaining state.

Installation

Run Command
uvicorn src.api.main:app --reload --host 0.0.0.0 --port 3000

Environment Variables

  • DATABASE_URL
  • OPENAI_API_KEY
  • CHROMA_HOST
  • CHROMA_PORT

Security Notes

CRITICAL: The `query_database` tool, exposed directly via the `/actions` API endpoint and callable by the agent, executes arbitrary SQL queries directly from user input without sanitization. This leads to severe SQL injection vulnerabilities. Similarly, the `browse_files` tool allows arbitrary path browsing, posing a local file exposure risk. Although `DATABASE_URL` and `OPENAI_API_KEY` are loaded from `.env`, this does not mitigate the critical lack of input validation for tool arguments directly provided by potentially untrusted users or generated by the agent.

Similar Servers

Stats

Interest Score0
Security Score2
Cost ClassMedium
Avg Tokens750
Stars0
Forks0
Last Update2025-11-21

Tags

MCPClient-ServerAI AgentToolingDatabase Integration