Theta-MCP
A comprehensive sales automation platform combining Model Context Protocol (MCP) server with Gemini AI voice interface, featuring 13+ integrated sales tools and AWS deployment capabilities.
README
Theta-MCP: AI-Powered Sales Assistant
A comprehensive sales automation platform combining Model Context Protocol (MCP) server with Gemini AI voice interface, featuring 13+ integrated sales tools and AWS deployment capabilities.
๐ Features
Core Capabilities
- Voice Interface: Gemini AI-powered speech-to-text and text-to-speech
- MCP Server: Model Context Protocol server with extensive tool integration
- Real-time Processing: WebSocket-based voice communication
- AWS Deployment: Production-ready with ECS Fargate and auto-scaling
Integrated Sales Tools
- CRM: HubSpot, Salesforce integration
- Communication: Gmail, Google Meet, Twilio SMS
- Lead Generation: LinkedIn Sales Navigator, Apollo
- Data Management: Google Sheets, Google Drive
- Payments: Stripe integration
- Scheduling: Calendly automation
- Search: Google Search API
๐๏ธ Architecture
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
โ Voice Client โโโโโบโ Gemini AI TTS โโโโโบโ MCP Server โ
โ (WebSocket) โ โ Interface โ โ (13+ Tools) โ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
๐ ๏ธ Quick Start
Local Development
# Clone repository
git clone <repository-url>
cd Theta-MCP
# Setup environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
# Configure settings
cp config/settings.example.json config/settings.json
# Add your API keys to config/settings.json
# Run locally
python ./deployment/test_local.py
Production Deployment
# Setup AWS deployment
./deployment/setup_aws.sh
# Deploy to AWS ECS
./deployment/aws/deploy.sh
๐ Project Structure
Theta-MCP/
โโโ sales_mcp_server.py # Main MCP server
โโโ gemini_tts_interface.py # Voice interface with Gemini AI
โโโ health_check.py # Health monitoring
โโโ refresh_google_token.py # Token management
โโโ config/ # Configuration files
โ โโโ google_auth.py # Google authentication
โ โโโ settings.py # Settings loader
โ โโโ settings.example.json # Configuration template
โโโ tools/ # Sales automation tools
โ โโโ hubspot_tool.py # HubSpot CRM integration
โ โโโ salesforce_tool.py # Salesforce integration
โ โโโ gmail_tool.py # Gmail automation
โ โโโ linkedin_tool.py # LinkedIn Sales Navigator
โ โโโ apollo_tool.py # Lead generation
โ โโโ stripe_tool.py # Payment processing
โ โโโ calendly_tool.py # Scheduling automation
โ โโโ ... (13+ tools total)
โโโ deployment/ # Deployment configurations
โ โโโ aws/ # AWS-specific files
โ โโโ docker/ # Docker configurations
โ โโโ setup_aws.sh # AWS setup script
โ โโโ test_local.py # Local testing
โโโ tests/ # Test suite
๐ง Configuration
Required API Keys
- Google Cloud (Speech-to-Text, Text-to-Speech, Calendar, Gmail)
- Gemini AI API key
- HubSpot, Salesforce, LinkedIn, Apollo (as needed)
- AWS credentials (for deployment)
Environment Variables
Copy .env.example to .env and configure:
GOOGLE_CLOUD_PROJECT=your-project
GEMINI_API_KEY=your-gemini-key
HUBSPOT_API_KEY=your-hubspot-key
# ... additional API keys
๐ AWS Deployment
Infrastructure
- ECS Fargate: Serverless container orchestration
- Application Load Balancer: Traffic distribution
- Auto Scaling: 2-10 instances based on demand
- EFS Storage: Persistent token and log storage
- Secrets Manager: Secure API key management
- CloudWatch: Monitoring and logging
Deployment Process
- Configure AWS credentials
- Run
./deployment/setup_aws.sh - Execute
./deployment/aws/deploy.sh - Access via provided ALB endpoint
๐งช Testing
# Run test suite
python -m pytest tests/
# Test local deployment
python ./deployment/test_local.py
# Health check
curl http://localhost:8000/health
๐ API Documentation
MCP Server Endpoints
GET /health- Health checkPOST /tools/{tool_name}- Execute toolWebSocket /voice- Voice interface
Voice Interface
- Real-time speech-to-text processing
- Gemini AI conversation handling
- Text-to-speech response generation
- WebSocket-based communication
๐ค Contributing
- Fork the repository
- Create feature branch (
git checkout -b feature/amazing-feature) - Commit changes (
git commit -m 'Add amazing feature') - Push to branch (
git push origin feature/amazing-feature) - Open Pull Request
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Support
For issues and questions:
- Create an issue in this repository
- Check the deployment guide:
./deployment/README.md - Review test configurations:
./tests/README.md
Built with โค๏ธ using Python, FastAPI, Gemini AI, and AWS
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.