Invoice-MCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Invoice-MCPsummarize my subscription spend for last month"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
InvoiceMCP
MCP server giving AI agents read access to subscription/SaaS invoice history,
ingested from Gmail and normalized into Postgres (structured data) + MongoDB
(PDFs). See SPEC.md for the full design.
Prerequisites
Node 22+, pnpm
Docker (local Postgres/Mongo/Redis) — or Railway database URLs
Google OAuth client (Gmail API enabled, redirect URI
http://localhost:8787/oauth/callback)OpenRouter API key
Related MCP server: ntriq-agentshop
Setup
cp .env.example .envand fill in values (scripts/has key generators noted inline)docker compose up -dpnpm installpnpm migrate up— appliesmigrations/to Postgrespnpm cli seed-org --name "Your Org"pnpm cli auth— browser OAuth consent, stores encrypted refresh tokenpnpm cli check-connections— sanity check all three databases
Running
Command | What |
| ingestion worker (BullMQ; registers the monthly sync cron) |
| MCP server on |
| whole-mailbox billing-sender discovery → auto-backfill |
| full history for one sender |
| incremental sync now (otherwise monthly via |
MCP tools
list_services, list_invoices, get_invoice, get_invoice_pdf,
spend_summary — all scoped to DEFAULT_ORG_ID; money in minor units,
per-currency aggregation, no FX conversion.
Claude Desktop's connector UI expects OAuth, which this MVP doesn't
implement — bridge with mcp-remote
in claude_desktop_config.json instead:
{
"mcpServers": {
"invoice-mcp": {
"command": "npx",
"args": [
"-y", "mcp-remote", "https://<host>/mcp",
"--header", "Authorization: Bearer <MCP_API_KEY>"
]
}
}
}Development
pnpm test/pnpm typecheck/pnpm lintpnpm codegen— regeneratesrc/db/types.tsafter schema changestsx scripts/smoke-extract.ts [pdf]— live LLM extraction smoke testtsx scripts/make-fixture-pdf.ts— regenerate the multi-page fixture PDF
Deploy (Railway)
One repo, two services:
worker — start
pnpm start:workermcp — start
pnpm start:mcp(health check/healthz)
Both build with pnpm install && pnpm build. Run pnpm migrate up as the
worker's pre-deploy command. Set env vars per .env.example (Railway injects
database URLs for linked Postgres/Mongo/Redis services).
This server cannot be installed
Maintenance
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
- Alicense-quality-maintenanceAn MCP server that enables AI agents to interact with QuickBooks Online accounts to manage invoices, customers, payments, and financial reports. It provides 20 tools to automate accounting workflows and retrieve financial data through natural language interfaces.Last updated
- AlicenseAqualityCmaintenanceMCP server for document intelligence via x402 micropayments. 6 tools: document analysis, invoice extraction, screenshot data, alt text, PII detection, sentiment analysis. Pay-per-use with USDC on Base — no API keys needed.Last updated61MIT
- AlicenseAqualityCmaintenanceMCP server for creating and fiscalizing invoices via solo.com.hr API. Enables AI agents to generate invoices, retrieve invoice details, list invoices, and check next invoice number.Last updated4MIT
- AlicenseAqualityBmaintenanceOne MCP server for the SaaS back office. Stripe, HubSpot, and Google Sheets exposed as typed, read-only-by-default tools for Claude and any MCP client.Last updated1MIT
Related MCP Connectors
Hosted MCP server for Mini Accountant: invoices, expenses, customers, analytics, tax estimates.
Analytical memory for AI agents: a real Postgres queried in plain English over MCP. One command.
Hosted email MCP for AI agents with inboxes, send/receive, memory, recovery, and credits.
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/CourtimusPrime/Invoice-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server