Enables automation workflows by providing 75 MCP tools for expense tracking operations that can be integrated into n8n automation platforms
WYGIWYH API MCP Server
A production-ready Model Context Protocol (MCP) server that provides a universal interface to the WYGIWYH expense tracking API. The server dynamically generates 75 MCP tools from an OpenAPI specification, enabling AI agents and automation platforms like n8n to interact with the expense tracking system through standardized tool calls.
Original repo of WYGIWYH
โจ Features
๐ Dynamic Tool Generation - Automatically generates 75 MCP tools from OpenAPI specification
๐ Secure Authentication - Bearer token authentication for MCP endpoints + Basic Auth for API access
๐ HTTP Streamable Transport - Full compatibility with n8n and other MCP clients
๐ณ Production-Ready Docker - Optimized multi-stage build with health checks
โก Async/Await - Efficient non-blocking API communication
๐ Comprehensive API Coverage - All WYGIWYH API endpoints exposed as tools
๐ฏ Use Cases
Automate expense tracking workflows with n8n
Build AI assistants that manage financial data
Create custom integrations with WYGIWYH API
Implement voice-controlled expense logging
Develop automated reporting systems
๐ฆ Quick Start
Prerequisites
Docker & Docker Compose
WYGIWYH API credentials
MCP Bearer token
Installation
Clone the repository
git clone https://github.com/ReNewator/MCP-WYGIWYH.git cd MCP-WYGIWYHConfigure environment
cp .env.example .env # Edit .env with your credentials # Don't forget change you WYGIWYH url in server.pyDeploy with Docker
./deploy.shOr manually:
docker-compose up -dVerify deployment
curl http://localhost:5000/health
๐ง Configuration
Create a .env
file with the following variables:
๐ n8n Integration
Configure the n8n MCP Client node:
Endpoint:
http://your-server:5000/
Transport: HTTP Streamable
Authentication: Header Auth
Name:
Authorization
Value:
Bearer YOUR_MCP_TOKEN
๐ ๏ธ Available Tools
The server exposes 75 MCP tools organized by category:
Account Management
account-groups_*
- Account group operations (6 tools)accounts_*
- Account CRUD operations (6 tools)
Transaction Management
transactions_*
- Transaction operations (6 tools)recurring-transactions_*
- Recurring transaction management (6 tools)installment-plans_*
- Installment plan handling (6 tools)
Financial Tools
categories_*
- Expense category management (6 tools)tags_*
- Transaction tagging (6 tools)currencies_*
- Currency management (6 tools)exchange-rates_*
- Exchange rate operations (6 tools)
Investment Features
dca_*
- Dollar-cost averaging strategies (15 tools)entities_*
- Entity management (6 tools)
Use the tools/list
method to see all available tools with their schemas.
๐ Project Structure
๐ Deployment
Docker (Recommended)
Kubernetes
Cloud Platforms
AWS ECS/Fargate - Use the Docker image with environment variables
Google Cloud Run - Deploy as container with secrets management
Azure Container Instances - Direct deployment from Docker Hub
See DEPLOYMENT.md for detailed cloud deployment instructions.
๐งช Testing
Run the validation script to verify the setup:
This displays all 75 generated MCP tools grouped by category.
๐ API Endpoints
POST /
- MCP JSON-RPC endpoint (requires Bearer token)GET /health
- Health check (no authentication)
๐ Security Features
โ Bearer token authentication for MCP access
โ Basic Auth for WYGIWYH API requests
โ Non-root container user
โ Secrets managed via environment variables
โ No exposed credentials in logs
๐๏ธ Architecture
Dynamic Tool Generation
The server automatically generates MCP tools from the OpenAPI specification:
Parses WYGIWYH API OpenAPI YAML
Converts schemas to JSON Schema format
Creates Tool objects for all operations
Handles
allOf
merging for complex typesExposes tools via MCP protocol
Benefits:
Single source of truth (OpenAPI spec)
Automatic updates when API changes
Zero manual endpoint definitions
Consistent tool schemas
Authentication Flow
๐ Troubleshooting
Server won't start
Authentication errors
Ensure
API_USERNAME
is your WYGIWYH emailVerify
API_PASSWORD
is correctCheck
MCP_TOKEN
matches client configuration
Connection refused
๐ Documentation
DEPLOYMENT.md - Comprehensive deployment guide
PROJECT.md - Technical architecture documentation
๐ค Contributing
Contributions are welcome! Please follow these guidelines:
Fork the repository
Create a feature branch
Make your changes with tests
Submit a pull request
๐ License
Copyright (c) 2025 ReNewator.com. All rights reserved.
๐ Links
๐ฌ Support
For issues and questions:
Open an issue on GitHub
Check existing documentation
Review deployment logs
Built with โค๏ธ by ReNewator.com
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Enables AI agents to interact with the WYGIWYH expense tracking API through 75 dynamically generated MCP tools. Supports comprehensive financial operations including transaction management, account handling, recurring expenses, and investment tracking.
- โจ Features
- ๐ฏ Use Cases
- ๐ฆ Quick Start
- ๐ง Configuration
- ๐ n8n Integration
- ๐ ๏ธ Available Tools
- ๐ Project Structure
- ๐ Deployment
- ๐งช Testing
- ๐ API Endpoints
- ๐ Security Features
- ๐๏ธ Architecture
- ๐ Troubleshooting
- ๐ Documentation
- ๐ค Contributing
- ๐ License
- ๐ Links
- ๐ฌ Support