About Whatstyle MCP
Whatstyle MCP is an MCP server published by sinhaparth5 in the AI category: a Model Context Protocol (MCP) server with Grok AI integration for intelligent WhatsApp messaging.
The repository has 2 stars and 0 forks, with the last commit a year ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.
Install
git clone https://github.com/sinhaparth5/whatstyle-mcpThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Ask AI
Ask AI about Whatstyle MCP
Powered by Claude · Grounded in docs
Security checks
- ✓README presentThe repository ships documentation.
- ✓License declaredUsable under a stated license.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
3 checks have not been run yet.
README
WhatsStyle MCP Server
A Model Context Protocol (MCP) server with Grok AI integration for intelligent WhatsApp messaging.
Features
- MCP Protocol - Official Go SDK compliance
- Grok AI - X.AI powered responses with conversation context
- WhatsApp Ready - Business API webhook support
- SQLite Database - Message persistence and user management
- Production Ready - Docker, CI/CD, monitoring
Quick Start
Prerequisites
- Go 1.21+
- SQLite3
- Grok API key from X.AI
Installation
git clone https://github.com/sinhaparth5/whatstyle-mcp.git
cd whatstyle-mcp
go mod download
Configuration
# Copy environment template
cp .env.example .env
# Edit with your API keys
GROK_API_KEY=xai-your_actual_key_here
PORT=8080
Run
# Build and run
make build
./bin/mcp-server
# Or run directly
go run cmd/server/main.go
API Endpoints
GET /health- Server health checkPOST /mcp- MCP protocol endpointGET /tools- Available MCP toolsPOST /webhook- WhatsApp webhook handler
MCP Tools
Chat Tool
{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "chat",
"arguments": {
"user_id": "user123",
"message": "Hello!"
}
}
}
History Tool
{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "history",
"arguments": {
"user_id": "user123",
"limit": 10
}
}
}
Development
Quality Checks
make quality # All checks + 80% coverage
make lint # Code linting
make test # Run tests
make security # Security scan
Coverage
make test-coverage # Generate HTML report
make test-coverage-threshold # Check 80% minimum
Deployment
Docker
docker build -t whatsapp-mcp-server .
docker run -p 8080:8080 -e GROK_API_KEY=your_key whatsapp-mcp-server
Railway/Heroku
Set environment variables and deploy from GitHub.
Environment Variables
| Variable | Description | Default |
|---|---|---|
GROK_API_KEY |
X.AI Grok API key | Required |
PORT |
Server port | 8080 |
DATABASE_PATH |
SQLite database path | ./mcp_server.db |
GROK_MODEL |
Grok model to use | grok-beta |
Architecture
WhatsApp → Webhook → MCP Server → Grok AI → Response
↓
SQLite Database
License
Licensed under the Apache License 2.0. See LICENSE for details.
Support
- GitHub Issues for bugs and features
- X.AI Documentation for Grok API
- MCP Specification for protocol details
README copy captured when this server was indexed; it may lag the repository. The original is authoritative.