Expense Tracker MCP Server
Expense Tracker MCP Server
Ein mit FastMCP (v3.x) und Python entwickelter Model Context Protocol (MCP)-Server, der MCP-kompatiblen Clients wie Claude Desktop und dem MCP Inspector Tools und Ressourcen zur Ausgabenverfolgung bereitstellt.
📋 Voraussetzungen
Python: 3.10+ (mit Python 3.14 getestet)
uv: Schneller Python-Paketinstallierer und -Resolver (astral.sh/uv)
Node.js:
v22.xoderv24.x(LTS) — Erforderlich für die Benutzeroberfläche des MCP InspectorClaude Desktop (optional): Zum Testen von Tools direkt in Claude
Related MCP server: Demo MCP Server
🚀 Einrichtung & Installation
1. Projekt und Umgebung initialisieren
# Initialize uv project (if starting fresh)
uv init .
# Install FastMCP
uv add fastmcp2. Node.js für die MCP Inspector-Benutzeroberfläche vorbereiten
Der MCP Inspector (@modelcontextprotocol/inspector) erfordert Node.js v22.19.0+ oder v24+. Wenn Sie nvm-windows verwenden:
nvm install lts
nvm use 24Installieren Sie den Inspector global oder lassen Sie npx ihn abrufen:
npm install -g @modelcontextprotocol/inspector🛠️ Ausführung & Entwicklung
Option A: Interaktive Weboberfläche (MCP Inspector)
Um die MCP Inspector-Weboberfläche mit Hot Reloading zu starten:
uv run fastmcp dev inspector main.pyLassen Sie dieses Terminal-Fenster geöffnet.
Die Konsole gibt eine lokale URL mit einem Authentifizierungstoken aus:
MCP Inspector Web is up and running at: http://127.0.0.1:6274?MCP_INSPECTOR_API_TOKEN=<token>Öffnen Sie diesen Link in Ihrem Browser, um Tools zu testen, Schemas zu inspizieren und Echtzeit-Anfrage-/Antwort-Logs anzusehen.
Option B: Server direkt ausführen (STDIO)
Um den MCP-Server im Standard-I/O-Modus auszuführen:
uv run fastmcp run main.py(oder uv run python main.py)
🤖 Verbindung zu Claude Desktop herstellen
1. Speicherort der Konfigurationsdatei
Unter Windows wird die Konfiguration von Claude Desktop unter folgendem Pfad gespeichert:
%APPDATA%\Claude\claude_desktop_config.json(Vollständiger Pfad: C:\Users\<YourUsername>\AppData\Roaming\Claude\claude_desktop_config.json)
2. Konfigurationseinstellungen
Fügen Sie die Definition expense-server unter mcpServers hinzu.
Hinweis: Unter Windows übernehmen GUI-Anwendungen wie Claude Desktop die
PATH-Variable der Shell häufig nicht. Geben Sie immer den absoluten Pfad zuuv.exean.
{
"mcpServers": {
"expense-server": {
"command": "C:\\Users\\hp\\AppData\\Local\\Python\\pythoncore-3.14-64\\Scripts\\uv.exe",
"args": [
"run",
"--directory",
"g:\\Projects\\expense-tracker-mcp-server",
"fastmcp",
"run",
"main.py"
]
}
}
}3. Claude Desktop neu starten
Schließen Sie Claude Desktop vollständig (stellen Sie sicher, dass es über das Windows-System-Tray neben der Uhr beendet wird).
Öffnen Sie Claude Desktop erneut.
Prüfen Sie unter Einstellungen > Entwickler, ob
expense-serververbunden ist.
🧰 Verfügbare Tools (aktuell main.py)
Tool | Parameter | Beschreibung |
|
| Wirft |
|
| Addiert zwei Zahlen miteinander und gibt die Summe zurück. |
🔧 Fehlerbehebung
1. Unknown command "main". Available commands: inspector, apps.
In FastMCP 3.x ist fastmcp dev eine Befehlsgruppe. Verwenden Sie fastmcp dev inspector main.py anstelle von fastmcp dev main.py.
2. node:util does not provide an export named 'styleText'
Node.js ist älter als v20.12. Aktualisieren Sie Node auf v22+ oder v24+ über nvm install lts && nvm use 24.
3. Cannot find native binding (npm optional dependencies bug)
Der npx-Cache ist durch das Wechseln der Node-Versionen beschädigt. Führen Sie Folgendes aus:
npm cache clean --force
Remove-Item -Recurse -Force "$env:LOCALAPPDATA\npm-cache\_npx" -ErrorAction SilentlyContinue
npm install -g @modelcontextprotocol/inspectorMaintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA basic educational MCP server that provides simple tools for mathematical calculations, text manipulation, and time retrieval. Designed for learning MCP implementation patterns and development purposes.
- FlicenseBqualityDmaintenanceA simple demonstration MCP server that provides basic utility tools including dice rolling and number addition functionality. This server serves as a tutorial example for setting up both local and remote MCP servers using FastMCP.3
- AlicenseAqualityDmaintenanceProvides comprehensive TRPG dice rolling functionality including standard notation, advantage/disadvantage mechanics, and success-counting dice pools. It enables users to perform complex dice logic and track roll history through an MCP-compliant interface.2MIT
- FlicenseNot gradedqualityCmaintenanceProvides tools for calculating math expressions and querying weather, demonstrating how to build an MCP server using FastMCP or raw SDK.
Related MCP Connectors
This MCP server enables users to perform scientific computations regarding linear algebra and vect…
Educational MCP server with 17 math/stats tools, visualizations, and persistent workspace
Markdown-first MCP server for Notion API with 8 composite tools and 39 actions.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/yash-201/expense-tracker-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server