DaZongGuan MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@DaZongGuan MCP ServerWhat tools do you have available?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
DaZongGuan - MCP Server Template
A template for building MCP (Model Context Protocol) servers with Python. This template provides a solid foundation for creating AI-powered assistants that connect to your backend systems.
Features
🔌 MCP Protocol Support - Built on MCP Python SDK 2.0
🔐 ApiKey Authentication - Secure API key-based authentication via HTTP headers
🛠️ Modular Tools - Easy-to-extend tool system
📝 Comprehensive Logging - Built-in logging with rotation
🚀 Production Ready - Includes middleware, error handling, and configuration management
Related MCP server: Python MCP Server Template
Quick Start
Prerequisites
Python 3.10+
MCP Python SDK >= 2.0.0
Installation
# Clone the repository
git clone https://github.com/yourusername/mcp-server-template.git
cd mcp-server-template
# Install dependencies
pip install -r requirements.txt
# Copy environment template
cp .env.example .envConfiguration
Edit .env file with your settings:
# Backend API Configuration
API_BASE_URL=http://your-api-server:port
# Server Configuration
PORT=8001
# Logging
LOG_LEVEL=INFOStart Server
python server.pyThe server runs at http://localhost:8001 by default, with the MCP endpoint at http://localhost:8001/mcp.
Project Structure
mcp-server-template/
├── server.py # MCP server entry point
├── config.py # Configuration and logging
├── middleware.py # Authentication middleware
├── constants.py # Constants definition
├── utils.py # Utility functions
├── tools/ # Tools module directory
│ ├── __init__.py # Tools module initialization
│ ├── example.py # Example tools
│ └── ... # Add your tools here
├── docs/ # Documentation
│ ├── README.md # This file
│ └── API.md # API documentation
├── .env.example # Environment variables template
├── requirements.txt # Python dependencies
└── LICENSE # MIT LicenseUsage
Configure MCP Client
Add the MCP configuration to your AI client:
{
"mcpServers": {
"your-server-name": {
"url": "http://localhost:8001/mcp",
"headers": {
"X-Api-Key": "YOUR_API_KEY"
}
}
}
}Creating Tools
Create new tools in the tools/ directory:
# tools/your_tool.py
from utils import call_api, check_response
def register_your_tools(mcp):
"""Register your tools to MCP server"""
@mcp.tool()
async def your_tool_name(param1: str = "", param2: int = 0) -> str:
"""Tool description for AI to understand when to use it.
Args:
param1: Description of param1
param2: Description of param2
Returns:
Description of return value
"""
# Call your backend API
res = await call_api("/api/your-endpoint", body={
"param1": param1,
"param2": param2
})
# Check response
ok, result = check_response(res, "your action")
if not ok:
return f"❌ {result}"
# Process and return result
return f"✅ Success: {result}"Register your tools in tools/__init__.py:
from tools.your_tool import register_your_tools
def register_all_tools(mcp):
"""Register all tools to MCP server"""
register_your_tools(mcp)Creating Resources
Resources provide read-only data to AI:
@mcp.resource("your-server://resource-name")
async def get_resource():
"""Resource description"""
return {"key": "value"}Environment Variables
Variable | Description | Default |
| Backend API base URL |
|
| Server port |
|
| Logging level |
|
Tech Stack
MCP Python SDK - Official MCP Python SDK (>= 2.0.0)
httpx - Async HTTP client
uvicorn - ASGI server
Contributing
Fork the repository
Create your feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'Add amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
Model Context Protocol - The protocol specification
MCP Python SDK - The Python implementation
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseCqualityDmaintenanceA starter template for building MCP servers that can integrate with Claude, Cursor, or other MCP-compatible AI assistants to create custom tools, resource providers, and prompt templates.2182
- Flicense-qualityDmaintenanceA foundational template for building MCP servers in Python using Streamable HTTP transport. Provides example implementations of tools, resources, and prompts to help developers create custom MCP integrations for AI assistants.
- Alicense-qualityDmaintenanceA template/boilerplate MCP server for building custom tools and integrations that enable seamless connections between AI applications and external data sources.270MIT
- Flicense-qualityDmaintenanceA Python template for building MCP servers with Streamable HTTP transport, providing example tools, resources, and prompts.1
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP server for AI dialogue using various LLM models via AceDataCloud
An MCP server that integrates with Discord to provide AI-powered features.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Lijianqiang999/dazongguan-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server