mcp-for-beginners
by 0x-Crisbanks
Overview
Demonstrates building custom Model Context Protocol (MCP) servers for various tasks like weather data retrieval, GitHub repository management, and integrating them with AI models via AI Toolkit and VS Code for enhanced developer workflows and study plan generation.
Installation
python src/__init__.py sseEnvironment Variables
- AZURE_OPENAI_CHAT_DEPLOYMENT_NAME
- AZURE_OPENAI_API_KEY
- AZURE_OPENAI_ENDPOINT
- AZURE_OPENAI_API_VERSION
- GITHUB_TOKEN
- LOG_LEVEL
- PORT
Security Notes
The `git_clone_repo` tool within the `github_mcp_server` takes a `repo_url` as input without explicit validation or sanitization of the URL format. This could potentially allow an attacker to craft a malicious URL that exploits vulnerabilities in Git (e.g., via hooks, submodules, or path traversal within the cloned content) even if `shell=False` is the default for `subprocess.run`. Additionally, the `open_in_vscode` tool uses `shell=True` on Windows for the `start` command, which is generally riskier for user-supplied paths.
Similar Servers
mcp-for-beginners
Building custom Model Context Protocol (MCP) servers for AI agent development, including weather data retrieval and GitHub repository automation.
mcp-python-starter
A feature-complete Model Context Protocol (MCP) server template in Python for developing AI applications and agents.
Skolverket-MCP
Provides AI assistants access to Skolverket's open APIs (Curriculum, School Units, Planned Educations) to search, find, compare, and analyze educational data and statistics.
mcp-go-starter
A feature-complete Model Context Protocol (MCP) server template in Go demonstrating tools, resources, and prompts for AI agent interaction.