Enterprise Expense Automation System MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
uv pip install -r requirements.txt
2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add -e "GEMINI_API_KEY=${GEMINI_API_KEY}" enterprise-expense-automation -- python "<FULL_PATH_TO_ENTERPRISE_EXPENSE_AUTOMATION_SYSTEM_USING_MCP_NLP>/dist/index.js"

Replace <FULL_PATH_TO_ENTERPRISE_EXPENSE_AUTOMATION_SYSTEM_USING_MCP_NLP>/dist/index.js with the actual folder you prepared in step 1.

Required:GEMINI_API_KEY
README.md

Track company expenses, employees, departments, and performance via NLP.

🏒Enterprise Expense Automation System using MCP & NLP

A professional Model Context Protocol (MCP) server for tracking company expenses, employees, departments, and performance through natural language conversations with Claude Desktop.

✨ Features

  • 12 MCP Tools for complete CRUD operations
  • Natural Language Interface through Claude Desktop chatbot
  • Employee Management with unique employee numbers (EMP0001, EMP0002, etc.)
  • Expense Tracking with categorization and department assignment
  • Performance Management with ratings and comments
  • AI-Powered Analysis using Google Gemini 2.0 Flash (Latest 2025 Model)
  • Duplicate Detection and automatic cleanup
  • Safe Delete Operations with cascade support

πŸ—οΈ System Architecture

System Design

The architecture shows the complete flow from Claude Desktop through the MCP Server to the SQLite database, with AI-powered analysis via Google Gemini.

πŸ“Š Database Schema

departments         employees              expenses              performance
β”œβ”€β”€ id             β”œβ”€β”€ id                 β”œβ”€β”€ id                β”œβ”€β”€ id
β”œβ”€β”€ name           β”œβ”€β”€ employee_number    β”œβ”€β”€ date              β”œβ”€β”€ employee_id
└── description    β”œβ”€β”€ name               β”œβ”€β”€ amount            β”œβ”€β”€ rating
                   β”œβ”€β”€ role               β”œβ”€β”€ category          β”œβ”€β”€ month
                   β”œβ”€β”€ department_id      β”œβ”€β”€ note              └── comments
                   β”œβ”€β”€ salary             └── department_id
                   └── join_date

Current Data:

  • 4 Departments (Admin, HR, Tech, BPO)
  • 18 Employees with unique employee numbers
  • 34 Expense records
  • 20 Performance ratings

πŸš€ Quick Start

Prerequisites

  • Python 3.11 or higher
  • UV package manager or pip
  • Claude Desktop application
  • Google Gemini API key

Installation

  1. Create virtual environment
cd "C:\Users\VH0000812\Desktop\Expense Tracker"
uv venv
.\.venv\Scripts\activate
  1. Install dependencies
uv pip install -r requirements.txt
  1. Set up environment variables

Create .env file:

GEMINI_API_KEY=your_google_gemini_api_key_here
  1. Initialize database with sample data
python scripts\populate_data.py
  1. Configure Claude Desktop

Add to %APPDATA%\Claude\claude_desktop_config.json:

{
  "mcpServers": {
    "company-expense-tracker": {
      "command": "C:\\Users\\VH0000812\\Desktop\\Expense Tracker\\.venv\\Scripts\\python.exe",
      "args": [
        "C:\\Users\\VH0000812\\Desktop\\Expense Tracker\\main.py"
      ],
      "env": {
        "GEMINI_API_KEY": "your_api_key_here"
      }
    }
  }
}
  1. Restart Claude Desktop

πŸ› οΈ MCP Tools (12 Total)

βž• Create Operations (4)

Tool Description Example
add_department Create new departments "Create Marketing department"
add_employee Add employees with auto employee numbers "Hire John as Developer in Tech at $100k"
add_expense Track expenses by department "Add $500 AWS expense to Tech"
add_performance Add performance ratings "Give Alice 5 stars this month"

πŸ—‘οΈ Delete Operations (4)

Tool Description Example
delete_employee Remove employees by number/name "Delete employee EMP0015"
delete_expense Delete expense records "Delete expense ID 45"
delete_department Remove departments (force mode available) "Force delete Marketing with all data"
delete_duplicate_employees Auto-detect and remove duplicates "Remove all duplicate employees"

πŸ“‹ Query Operations (3)

Tool Description Example
list_employees View employees (all or by department) "Show all HR employees"
list_expenses List expenses with filters "Show Tech expenses last 30 days"
get_department_summary Comprehensive department stats "Give me HR summary"

πŸ€– AI Analysis (1)

Tool Description Example
analyze_company_with_ai AI-powered insights via Gemini "Which department spends most?"

πŸ’¬ Usage Examples

Employee Management

βœ… "Hire Sarah as Marketing Manager in Admin at $75,000"
βœ… "Show me all Tech department employees"
βœ… "Delete employee EMP0017"
βœ… "Find and remove all duplicate employees"

Expense Tracking

βœ… "Add $1,500 office furniture expense to Admin"
βœ… "Show all expenses from last month"
βœ… "Delete expense ID 32"

Performance & Analysis

βœ… "Give John Smith a 5-star rating with comment 'Excellent work'"
βœ… "Show me complete HR depar

Tools (12)

add_departmentCreate new departments
add_employeeAdd employees with auto employee numbers
add_expenseTrack expenses by department
add_performanceAdd performance ratings
delete_employeeRemove employees by number or name
delete_expenseDelete expense records
delete_departmentRemove departments with optional force mode
delete_duplicate_employeesAuto-detect and remove duplicate employee records
list_employeesView employees list, optionally filtered by department
list_expensesList expenses with filtering options
get_department_summaryGet comprehensive department statistics
analyze_company_with_aiGet AI-powered insights via Google Gemini

Environment Variables

GEMINI_API_KEYrequiredAPI key for Google Gemini 2.0 Flash model

Configuration

claude_desktop_config.json
{"mcpServers": {"company-expense-tracker": {"command": "python", "args": ["main.py"], "env": {"GEMINI_API_KEY": "your_api_key_here"}}}}

Try it

β†’Hire John as Developer in Tech at $100k salary.
β†’Add a $500 AWS expense to the Tech department.
β†’Give Alice 5 stars for this month with the comment 'Excellent work'.
β†’Which department has the highest total expenses?
β†’Show me all employees currently in the HR department.

Frequently Asked Questions

What are the key features of Enterprise Expense Automation System?

12 specialized MCP tools for CRUD operations. Natural language interface for organizational management. AI-powered company analysis using Google Gemini 2.0 Flash. Automated duplicate detection and cleanup. Safe delete operations with cascade support.

What can I use Enterprise Expense Automation System for?

Automating employee onboarding and record keeping. Tracking departmental spending in real-time via chat. Generating performance reviews and feedback logs. Performing AI-driven analysis on company operational data.

How do I install Enterprise Expense Automation System?

Install Enterprise Expense Automation System by running: uv pip install -r requirements.txt

What MCP clients work with Enterprise Expense Automation System?

Enterprise Expense Automation System works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Enterprise Expense Automation System docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare