
MCP Integration Servers
This repository contains MCP (Model Control Protocol) servers for integrating various services with Claude Desktop.
Gmail and Google Calendar MCP Server
The Gmail and Google Calendar integration allows Claude to interact with your Gmail account and Google Calendar, enabling email management and calendar operations.
Features
-
Gmail Operations:
- Get latest emails from inbox
- Search emails using Gmail query syntax
- Read email content
- Send emails with CC and BCC support
-
Calendar Operations:
- Search calendar events
- Create new calendar events
- View upcoming events
Setup Instructions
-
Prerequisites:
- Python 3.x
- MCP package installed
- Google Cloud Console project with Gmail and Calendar APIs enabled
-
OAuth Credentials:
- Go to Google Cloud Console
- Create a new project or select existing one
- Enable Gmail API and Google Calendar API
- Create OAuth 2.0 credentials
- Download credentials and save as
credentials.json
in the project directory
-
Installation:
# Install required packages pip install google-auth-oauthlib google-auth-httplib2 google-api-python-client # Install the server in Claude Desktop mcp install server.py
-
First Run:
- Run the server:
mcp run server.py
- First run will prompt for OAuth authentication
- Follow the browser link to authorize the application
- Token will be saved for future use
- Run the server:
Available Tools
Gmail Tools
-
get_latest_emails(max_results: int = 10)
: Get latest emails from inbox -
search_emails(query: str, max_results: int = 10)
: Search emails using Gmail query -
get_email_content(email_id: str)
: Get content of a specific email -
send_email(to: str, subject: str, body: str, cc: Optional[str], bcc: Optional[str])
: Send email
Calendar Tools
-
search_events(query: str, max_results: int = 10, time_min: Optional[str])
: Search calendar events -
create_calendar_event(summary: str, start_time: str, end_time: str, description: Optional[str], location: Optional[str])
: Create new event
Backend API MCP Server
The Backend API MCP server provides a template for integrating your custom backend API with Claude Desktop.
Features
- User management operations
- Standardized API responses
- Error handling and logging
- Pydantic models for data validation
Setup Instructions
-
Prerequisites:
- Python 3.x
- MCP package installed
-
Installation:
# Install required packages pip install pydantic # Install the server in Claude Desktop mcp install backend_server.py
-
Configuration:
- Update the API endpoint configurations
- Implement actual API calls in tool functions
- Add authentication if required
Available Tools
-
get_users(max_results: int = 10)
: Get list of users -
create_user(username: str, email: str, password: str)
: Create new user -
search_users(query: str)
: Search for users
Development
Running in Debug Mode
# Run with debug logging
export MCP_DEBUG=true
mcp dev server.py
# Run without debug logging
mcp run server.py
Adding New Tools
- Define Pydantic models for request/response
- Create new tool function with
@mcp.tool()
decorator - Implement error handling
- Add logging for debugging
Best Practices
- Use appropriate error handling
- Include comprehensive logging
- Validate input data using Pydantic models
- Follow security best practices for API keys and tokens
- Keep credentials and sensitive data secure
Security Notes
- Store API keys and credentials securely
- Use environment variables for sensitive data
- Never commit credentials to version control
- Implement rate limiting where appropriate
- Follow OAuth best practices
Common Issues
-
Authentication Errors:
- Check if credentials.json is present
- Verify OAuth token validity
- Re-authenticate if token expired
-
API Rate Limits:
- Implement exponential backoff
- Handle quota exceeded errors
- Monitor API usage
-
Connection Issues:
- Check network connectivity
- Verify API endpoint availability
- Confirm firewall settings
Contributing
- Fork the repository
- Create feature branch
- Commit changes
- Create pull request
License
This project is licensed under the MIT License - see the LICENSE file for details.
相关推荐
I find academic articles and books for research and literature reviews.
Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.
Confidential guide on numerology and astrology, based of GG33 Public information
Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.
Converts Figma frames into front-end code for various mobile frameworks.
Advanced software engineer GPT that excels through nailing the basics.
Take an adjectivised noun, and create images making it progressively more adjective!
Discover the most comprehensive and up-to-date collection of MCP servers in the market. This repository serves as a centralized hub, offering an extensive catalog of open-source and proprietary MCP servers, complete with features, documentation links, and contributors.
Micropython I2C-based manipulation of the MCP series GPIO expander, derived from Adafruit_MCP230xx
The all-in-one Desktop & Docker AI application with built-in RAG, AI agents, No-code agent builder, MCP compatibility, and more.
Bridge between Ollama and MCP servers, enabling local LLMs to use Model Context Protocol tools
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
🧑🚀 全世界最好的LLM资料总结(Agent框架、辅助编程、数据处理、模型训练、模型推理、o1 模型、MCP、小语言模型、视觉语言模型) | Summary of the world's best LLM resources.
Reviews

user_WAs96yS1
MCP_gmail by Aayushchaudry is a fantastic tool for Gmail users who want to automate email handling and enhance productivity. With easy integration and user-friendly features, I have found it invaluable for managing my inbox efficiently. Highly recommend checking it out on GitHub for anyone looking to streamline their email workflow!