An intelligent text analysis tool with MCP (Model Context Protocol) integration for detecting AI-generated content.
- Frontend UI: Clean, modern interface for text analysis
- Backend API: Flask-based server with multiple endpoints
- MCP Integration: Support for Model Context Protocol clients
- Finchat API: Optional integration with Finchat AI services
- Local Analysis: Heuristic-based fallback when API is unavailable
- Real-time Analysis: Instant feedback on text authenticity
- Python 3.8 or higher
- Modern web browser (Chrome, Firefox, Safari, Edge)
- Git (for development)
-
Clone the repository:
git clone https://github.com/MikeVenge/write-aid-mcp.git cd write-aid-mcp -
Install dependencies:
pip3 install -r requirements.txt
-
Configure (Optional):
- Edit
ai_checker_config.jsfor frontend settings - Set environment variables for Finchat API (see below)
- Edit
./start_with_backend.shThis will:
- Start the backend server on port 5001
- Start the frontend server on port 8000
- Open the app in your browser
Terminal 1 - Backend:
python3 backend_server.pyTerminal 2 - Frontend:
python3 -m http.server 8000Browser:
http://localhost:8000/ai_checker.html
To use the Finchat API integration, set these environment variables:
export FINCHAT_BASE_URL="https://your-finchat-instance.com"
export FINCHAT_API_TOKEN="your_jwt_token_here"
export FINCHAT_COT_SLUG="ai-detector"
export FINCHAT_MODEL="gemini-2.5-flash"See QUICK_SETUP.md for detailed configuration.
write-aid-mcp/
├── ai_checker.html # Main frontend interface
├── ai_checker.js # Frontend JavaScript logic
├── ai_checker.css # Styling
├── ai_checker_config.js # Frontend configuration
├── backend_server.py # Flask backend server
├── mcp_*.py # MCP client implementations
├── requirements.txt # Python dependencies
├── start_with_backend.sh # Startup script
└── docs/ # Documentation files
Run the test suite:
python3 test_ai_detector.py- RUN_INSTRUCTIONS.md - Detailed running instructions
- BACKEND_SETUP.md - Backend configuration guide
- QUICK_SETUP.md - Quick reference guide
- TROUBLESHOOTING.md - Common issues and solutions
- MCP_INTEGRATION_GUIDE.md - MCP protocol details
- User Input: Paste text into the web interface
- Analysis: Text is analyzed by:
- Finchat API (if configured)
- Local heuristic algorithms (fallback)
- Results: Display confidence score and detailed analysis
- Feedback: Visual indicators for AI vs. human-written content
GET /health- Server health checkPOST /analyze- Analyze text for AI contentPOST /mcp/analyze- MCP-compatible analysis endpoint
Contributions are welcome! Please feel free to submit a Pull Request.
MIT License - see LICENSE file for details
Mike Venge
- GitHub: @MikeVenge
- Repository: write-aid-mcp
Found a bug? Please open an issue on GitHub Issues
If you find this project helpful, please give it a star on GitHub!
Version: 1.0.0
Last Updated: November 10, 2025