GrappleAI MCP Server
Enables AI-powered consumer dispute resolution by providing tools for secure evidence storage with confidence scoring, autonomous negotiation, formal dispute notice generation, and consumer rights verification under the Consumer Protection Act.
README
GrappleAI - Active Defense Layer for Consumers
An AI-driven dispute resolution platform built with React frontend and AWS CDK Lambda backend. GrappleAI advocates for consumers in post-purchase disputes using autonomous agents and the Model Context Protocol (MCP).
π Quick Start
Get up and running in 5 minutes:
# Frontend
cd app && npm install && npm run dev
# Backend (separate terminal)
cd backend && npm install && npm run cdk:deploy
See QUICKSTART.md for detailed instructions.
π Documentation
Getting Started
- Quick Start Guide - Get running in 5 minutes
- Complete Setup Guide - Detailed setup instructions
- Project Overview - Architecture and features
Methodology & Vision
- AI-DLC Methodology - AI-Driven Development Life Cycle
- Traditional SDLC - SDLC vs AIDLC comparison
- GrappleAI Concept - Problem statement and vision
- AI-DLC Details - Active Defense Layer for Consumers
Component Documentation
- Frontend README - React app details
- Backend README - AWS CDK backend details
ποΈ Architecture
React Frontend (Vite)
β HTTP/REST
API Gateway (AWS)
β
Lambda Function (Node.js 20.x)
ββ MCP Server
ββ Request Handler
ββ Business Logic
β
βββββ΄ββββ¬βββββββββ
β β β
DynamoDB S3 DynamoDB
Disputes Evidence Negotiations
β¨ Features
- Dispute Management - Create, track, and manage disputes
- Evidence Verification - Automatic confidence scoring and secure storage
- Autonomous Negotiation - AI-driven negotiation with sellers
- Consumer Rights - Consumer Protection Act 2019 integration
- Dashboard Analytics - Real-time dispute statistics
- Multi-language Support - Vernacular interface support
π οΈ Tech Stack
Frontend
- React 18 + TypeScript
- Vite (build tool)
- Tailwind CSS (styling)
- Zustand (state management)
- React Router (navigation)
Backend
- AWS CDK (infrastructure as code)
- AWS Lambda (serverless compute)
- AWS API Gateway (REST API)
- AWS DynamoDB (database)
- AWS S3 (storage)
- Node.js 20.x
π Project Structure
grappleai/
βββ app/ # React frontend
β βββ src/
β β βββ components/ # React components
β β βββ pages/ # Page components
β β βββ services/ # API client
β β βββ store/ # State management
β β βββ types/ # TypeScript types
β βββ package.json
β
βββ backend/ # AWS CDK backend
β βββ lib/
β β βββ cdk/ # CDK stack
β β βββ lambda/ # Lambda handler
β β βββ mcp/ # MCP server
β β βββ types/ # TypeScript types
β βββ package.json
β
βββ SDLC to AIDLC/ # Methodology docs
β βββ AIDLC.md
β βββ SDLC.md
β
βββ AI-DLC/ # AI-DLC documentation
β βββ AI-DLC.md
β
βββ QUICKSTART.md # 5-minute setup
βββ SETUP.md # Complete setup guide
βββ PROJECT_OVERVIEW.md # Architecture overview
βββ README.md # This file
π Getting Started
Prerequisites
- Node.js 18+
- AWS Account
- AWS CLI configured
Frontend Setup
cd app
npm install
npm run dev
Visit: http://localhost:5173
Backend Setup
cd backend
npm install
npm run cdk:deploy
Connect Frontend to Backend
Update app/.env.local:
VITE_API_URL=https://your-api-endpoint.com/api
π API Endpoints
Disputes
POST /disputes- Create disputeGET /disputes- List disputesGET /disputes/{id}- Get dispute detailsPUT /disputes/{id}- Update dispute
Evidence
POST /evidence/upload- Upload evidenceGET /evidence/{id}- Get evidencePOST /evidence/{id}/verify- Verify evidence
Negotiation
POST /negotiation/initiate- Start negotiationGET /negotiation/{txId}- Get status
π§ MCP Server Tools
The backend implements these MCP tools:
- secureEvidence - Clutch evidence securely with confidence scoring
- negotiateRefund - Initiate autonomous negotiation
- generateDisputeNotice - Generate formal dispute notice
- verifyConsumerRights - Verify Consumer Protection Act rights
π Dashboard Features
- Statistics - Total disputes, resolved, in-progress, success rate
- Dispute List - View all disputes with status indicators
- Create Dispute - File new disputes with evidence
- Real-time Updates - Track dispute progress
π Security
- JWT/OAuth2 ready
- Input validation
- IAM roles with least privilege
- Encryption at rest and in transit
- CORS enabled
- API rate limiting ready
π Performance
- Frontend: ~50KB gzipped
- Lambda: 512MB memory, 30s timeout
- DynamoDB: On-demand billing
- API: <100ms response time
π° Cost Estimation
Monthly (small-medium usage):
- Lambda: $0.20 per 1M requests
- DynamoDB: $1.25 per 100 write units
- S3: $0.023 per GB
- API Gateway: $3.50 per 1M requests
- Total: ~$50-200/month
π§ͺ Development
Frontend Commands
npm run dev # Start dev server
npm run build # Build for production
npm run lint # Run linter
npm run type-check # Check types
Backend Commands
npm run build # Compile TypeScript
npm run cdk:deploy # Deploy to AWS
npm run cdk:destroy # Destroy stack
npm run cdk:diff # Preview changes
π’ Deployment
Frontend
- Vercel:
vercel deploy - Netlify:
netlify deploy --prod --dir=dist - AWS S3:
aws s3 sync dist/ s3://bucket/
Backend
cd backend
npm run cdk:deploy
π Learn More
π€ Contributing
- Create feature branch
- Make changes
- Run linter and type-check
- Submit PR
π License
MIT
π― Vision
GrappleAI is building the trust layer for India's digital economy. By combining AI, law, and technology, we're creating an active advocate for every consumerβensuring that disputes are resolved fairly, quickly, and in the consumer's preferred language.
Ready to build? Start with QUICKSTART.md!
GrappleAI - Active Defense Layer for Consumers Building trust in India's digital economy, one dispute at a time.
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.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
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.