Skip to main content
Glama
kambleaa007

GrappleAI MCP Server

by kambleaa007

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.

Related MCP server: korean-privacy-law-mcp

πŸ“š Documentation

Getting Started

Methodology & Vision

Component Documentation

πŸ—οΈ 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 dispute

  • GET /disputes - List disputes

  • GET /disputes/{id} - Get dispute details

  • PUT /disputes/{id} - Update dispute

Evidence

  • POST /evidence/upload - Upload evidence

  • GET /evidence/{id} - Get evidence

  • POST /evidence/{id}/verify - Verify evidence

Negotiation

  • POST /negotiation/initiate - Start negotiation

  • GET /negotiation/{txId} - Get status

πŸ”§ MCP Server Tools

The backend implements these MCP tools:

  1. secureEvidence - Clutch evidence securely with confidence scoring

  2. negotiateRefund - Initiate autonomous negotiation

  3. generateDisputeNotice - Generate formal dispute notice

  4. 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

  1. Create feature branch

  2. Make changes

  3. Run linter and type-check

  4. 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.

A
license - permissive license
Not graded
quality - not tested
D
maintenance

Maintenance

–Maintainers
–Response time
–Release cycle
–Releases (12mo)
Commit activity

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

  • A
    license
    C
    quality
    B
    maintenance
    Enables searching, comparing, and analyzing Korean laws and public institution regulations through natural language, integrating 110 MCP tools covering statutes, precedents, and internal rules.
    100
    12
    15
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    Enables natural language interaction with the Korean Personal Information Protection Act (PIPA) through 37 MCP tools that search, compare, analyze, and verify legal texts, official guidelines, and consulting cases from authoritative sources.
    37
    11
    4
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    Provides automated EU AI Act compliance tools, including risk classification, role determination, transparency disclosures, content watermarking, deepfake labeling, and security threat detection.
    16
    31
    Apache 2.0
  • A
    license
    B
    quality
    B
    maintenance
    Enables Korean legal document processing, case analysis, and consultation using MCP, with OCR parsing, fact extraction, claim identification, subsumption grid, legal API verification, and document drafting.
    24
    MIT

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

Latest Blog Posts

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/kambleaa007/GrappleAI'

If you have feedback or need assistance with the MCP directory API, please join our Discord server