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
Develop and debug custom Model Context Protocol (MCP) servers for AI agents, integrating external tools and data sources like weather APIs and GitHub for automated workflows, or generating personalized study plans from documentation.
php-mcp
Implements the Model Context Protocol (MCP) to enable seamless integration between LLM applications and external data sources and tools, providing a server-side framework in PHP.
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.
jotsu-mcp
A general-purpose Python library and CLI for implementing the Model Context Protocol (MCP) and creating workflows that integrate MCP tools, resources, and prompts, as well as various AI models (Anthropic, OpenAI, Cloudflare).