Expense Tracker MCP Server
Expense Tracker MCP Server
Ein Model Context Protocol (MCP)-Server, erstellt mit FastMCP (v3.x) und Python, der Tools und Ressourcen für die Ausgabenverfolgung für MCP-kompatible Clients wie Claude Desktop und den MCP Inspector bereitstellt.
📋 Voraussetzungen
Python: 3.10+ (getestet mit Python 3.14)
uv: Schneller Python-Paketinstaller und -Resolver (astral.sh/uv)
Node.js:
v22.xoderv24.x(LTS) — Erforderlich für die MCP Inspector UIClaude Desktop (optional): Zum Testen von Tools direkt in Claude
Related MCP server: Math Addition 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 UI vorbereiten
nvm install lts
nvm use 24Installieren Sie den Inspector global oder erlauben Sie npx, ihn abzurufen:
npm install -g @modelcontextprotocol/inspector🛠️ Ausführung & Entwicklung
Option A: Interaktive Web-UI (MCP Inspector)
Um die MCP Inspector-Web-UI mit Hot Reloading zu starten:
uv run fastmcp dev inspector main.pyHalten Sie dieses Terminalfenster 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, Schemata zu inspizieren und Echtzeit-Anfrage-/Antwortprotokolle 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 gespeichert unter:
%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 von expense-server unter mcpServers hinzu.
Hinweis: Unter Windows erben GUI-Anwendungen wie Claude Desktop oft nicht den Shell-
PATH. Geben Sie immer den absoluten Pfad zuuv.exean.
{
"mcpServers": {
"expense-server": {
"command": "C:\\Users\\pyash\\AppData\\Local\\Python\\pythoncore-3.14-64\\Scripts\\uv.exe",
"args": [
"run",
"--directory",
"d:\\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 aus der Windows-Systemleiste in der Nähe der Uhr beendet wird).
Öffnen Sie Claude Desktop erneut.
Überprüfen Sie Einstellungen > Entwickler, um zu bestätigen, dass
expense-serververbunden ist.
🧰 Verfügbare Tools (aktuelles main.py)
Tool | Parameters | Description |
|
| Würfelt |
|
| Addiert zwei Zahlen und gibt die Summe zurück. |
🔧 Fehlerbehebung
1. Unknown command "main.py". 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 auf Node v22+ oder v24+ über nvm install lts && nvm use 24.
3. Cannot find native binding (npm optional dependencies bug)
Beschädigter npx-Cache durch Wechsel der Node-Versionen. Führen Sie 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.
Related MCP Servers
- 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
- FlicenseNot gradedqualityDmaintenanceA simple MCP server that provides a tool for adding two numbers, designed for testing MCP integration with Claude.
- FlicenseNot gradedqualityCmaintenanceProvides basic calculator operations (add, subtract, multiply, divide) as MCP tools for use with Claude Desktop and other MCP clients.
- AlicenseAqualityDmaintenanceA minimal FastMCP server providing demo tools for arithmetic operations and dice rolls, designed for learning MCP wiring with Claude Desktop or other MCP clients.3MIT
Related MCP Connectors
Math.js MCP — wraps the mathjs.org API (free, no auth)
NumbersAPI MCP — wraps numbersapi.com (free, no auth)
MCP server for Argo RPG Platform — connects AI assistants to campaign data via OAuth2
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/ykp-narola/expense-tracker-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server