MCP Python Server
M

MCP Python Server

這是一個Python項目模板,集成了ruff、black等代碼檢查和格式化工具,使用pre-commit管理鉤子,包含pytest測試框架和覆蓋率插件,並通過Github Actions實現自動化測試。支持devcontainer開發環境和傳統虛擬環境。
2分
7.7K

What is this Python Project Template?

This is a starter template for Python projects that comes pre-configured with essential development tools like code formatters, linters, and testing frameworks. It helps developers quickly start new projects with best practices already in place.

How to use this template?

You can either use the built-in devcontainer for a containerized development environment or set up manually with virtualenv. The template includes pre-commit hooks for code quality checks and GitHub Actions for continuous integration.

When should I use this template?

Ideal for starting new Python projects of any size, especially when you want to ensure code quality from the beginning. Great for both individual developers and teams.

Key Features

Code Quality Tools
Includes ruff (combining flake8, isort, pyupgrade) for linting and black for automatic code formatting
Testing Framework
Comes with pytest and pytest-cov for testing with coverage reporting
CI/CD Integration
GitHub Actions workflow pre-configured to run checks on every pull request and merge
DevContainer Support
Ready-to-use development container configuration for VS Code and GitHub Codespaces
Advantages
Saves setup time with pre-configured tools
Enforces consistent code style across team members
Containerized development environment reduces 'works on my machine' issues
Built-in CI/CD pipeline ensures code quality
Limitations
Initial learning curve for developers unfamiliar with the tools
Might include unnecessary tools for very simple projects
Default Python version (3.11) may need adjustment for some projects

Getting Started

Option 1: Use DevContainer
Open in VS Code with Dev Containers extension or GitHub Codespaces for automatic setup
Option 2: Manual Setup
Create virtual environment and install dependencies
Install Pre-commit Hooks
Set up git hooks to run quality checks before each commit
Start Developing
Replace the sample main.py and tests with your own code

Example Workflows

Adding New Feature
1. Create feature branch 2. Write code 3. Add tests 4. Pre-commit checks will run automatically 5. Push to GitHub where CI runs full checks
Fixing Style Issues
When pre-commit finds style violations, it will either auto-fix them or show you what needs manual fixing

Frequently Asked Questions

How do I change the Python version?
Can I add more pre-commit hooks?
What if I don't want to use all these tools?

Additional Resources

Blog Post: How I Setup Python Projects
Detailed explanation of the template's design decisions
DevContainer Images
List of available Python devcontainer images
Pre-commit Hooks
Additional hooks you can add to the configuration

安裝

複製以下命令到你的Client進行配置
注意:您的密鑰屬於敏感信息,請勿與任何人分享。

替代品

C
Claude Context
Claude Context是一個MCP插件,通過語義代碼搜索為AI編程助手提供整個代碼庫的深度上下文,支持多種嵌入模型和向量數據庫,實現高效代碼檢索。
TypeScript
5.7K
5分
A
Acemcp
Acemcp是一個代碼庫索引和語義搜索的MCP服務器,支持自動增量索引、多編碼文件處理、.gitignore集成和Web管理界面,幫助開發者快速搜索和理解代碼上下文。
Python
9.8K
5分
B
Blueprint MCP
Blueprint MCP是一個基於Arcade生態的圖表生成工具,利用Nano Banana Pro等技術,通過分析代碼庫和系統架構自動生成架構圖、流程圖等可視化圖表,幫助開發者理解複雜系統。
Python
8.2K
4分
M
MCP Agent Mail
MCP Agent Mail是一個為AI編程代理設計的郵件式協調層,提供身份管理、消息收發、文件預留和搜索功能,支持多代理異步協作和衝突避免。
Python
8.4K
5分
M
MCP
微軟官方MCP服務器,為AI助手提供最新微軟技術文檔的搜索和獲取功能
13.0K
5分
A
Aderyn
Aderyn是一個開源的Solidity智能合約靜態分析工具,由Rust編寫,幫助開發者和安全研究人員發現Solidity代碼中的漏洞。它支持Foundry和Hardhat項目,可生成多種格式報告,並提供VSCode擴展。
Rust
9.7K
5分
D
Devtools Debugger MCP
Node.js調試器MCP服務器,提供基於Chrome DevTools協議的完整調試功能,包括斷點設置、單步執行、變量檢查和表達式評估等
TypeScript
10.0K
4分
S
Scrapling
Scrapling是一個自適應網頁抓取庫,能自動學習網站變化並重新定位元素,支持多種抓取方式和AI集成,提供高性能解析和開發者友好體驗。
Python
11.8K
5分
M
Markdownify MCP
Markdownify是一個多功能文件轉換服務,支持將PDF、圖片、音頻等多種格式及網頁內容轉換為Markdown格式。
TypeScript
23.6K
5分
B
Baidu Map
已認證
百度地圖MCP Server是國內首個兼容MCP協議的地圖服務,提供地理編碼、路線規劃等10個標準化API接口,支持Python和Typescript快速接入,賦能智能體實現地圖相關功能。
Python
31.2K
4.5分
F
Firecrawl MCP Server
Firecrawl MCP Server是一個集成Firecrawl網頁抓取能力的模型上下文協議服務器,提供豐富的網頁抓取、搜索和內容提取功能。
TypeScript
85.2K
5分
S
Sequential Thinking MCP Server
一個基於MCP協議的結構化思維服務器,通過定義思考階段幫助分解複雜問題並生成總結
Python
25.1K
4.5分
N
Notion Api MCP
已認證
一個基於Python的MCP服務器,通過Notion API提供高級待辦事項管理和內容組織功能,實現AI模型與Notion的無縫集成。
Python
14.1K
4.5分
M
Magic MCP
Magic Component Platform (MCP) 是一個AI驅動的UI組件生成工具,通過自然語言描述幫助開發者快速創建現代化UI組件,支持多種IDE集成。
JavaScript
16.2K
5分
E
Edgeone Pages MCP Server
EdgeOne Pages MCP是一個通過MCP協議快速部署HTML內容到EdgeOne Pages並獲取公開URL的服務
TypeScript
18.9K
4.8分
C
Context7
Context7 MCP是一個為AI編程助手提供即時、版本特定文檔和代碼示例的服務,通過Model Context Protocol直接集成到提示中,解決LLM使用過時信息的問題。
TypeScript
58.2K
4.7分
AIBase
智啟未來,您的人工智慧解決方案智庫
© 2025AIBase