finance-mcp-server
A containerized MCP server with a management dashboard, enabling Google sign-in, token and OAuth client management, and a Streamable HTTP endpoint for MCP tools. It also includes a built-in chat assistant for AI model interactions.
README
MCP Server
A containerized Model Context Protocol (MCP) server with a management dashboard.
Users sign in with Google, manage their own access tokens and OAuth 2.1 clients;
admins manage users. The MCP endpoint (Streamable HTTP at /mcp) accepts both
personal access tokens and OAuth 2.1 access tokens issued by the built-in
authorization server.
Stack: Hono · Vite · React 19 · React Router · TanStack Query · Tailwind CSS 4 · Drizzle ORM · PostgreSQL · TypeScript. One process serves everything — in dev, Hono runs inside the Vite dev server; in production, Hono serves the built SPA.
Features
- Google sign-in only — no passwords. Access is invitation-only: admins invite
users by email;
ADMIN_EMAILSseeds admin accounts at boot. - Personal access tokens — optional expiry, enable/disable, revoke/delete, copy-once display, last-access tracking. Only SHA-256 hashes are stored.
- OAuth 2.1 authorization server — PKCE (S256) required, dynamic client registration (RFC 7591), discovery metadata (RFC 8414/9728), refresh token rotation with reuse detection, revocation (RFC 7009), consent screen.
- MCP endpoint — Streamable HTTP at
/mcpwithwhoamiandechostarter tools; add tools undersrc/server/mcp/. - Client integration center — in-dashboard, copy-ready setup guides for Claude, Claude Code, Codex, Cursor, Antigravity 2 and generic MCP clients, with both OAuth and personal-token instructions.
- Admin — user management (invite/enable/disable/role), all registered OAuth clients, full audit log.
- Built-in chat assistant — streaming chat with the latest Anthropic
(Claude Opus 4.8 / Sonnet 5 / Haiku 4.5), OpenAI (GPT-5.6 family), and Google
Gemini (3.1 Pro / 3.5 Flash / 3.5 Flash-Lite / 3.6 Flash) models. API keys come from the environment
(
ANTHROPIC_API_KEY,OPENAI_API_KEY,GEMINI_API_KEY— any subset); conversations are persisted per user with a model picker per conversation. - URL-driven UI — search, filters, pagination, sorting and tabs all live in URL search params, so every view is shareable and back/forward-safe.
Quick start (development)
Requirements: Node 22+, PostgreSQL.
cp .env.example .env # fill in DATABASE_URL, SESSION_SECRET, Google credentials, ADMIN_EMAILS
npm install
npm run dev # one process: http://localhost:5173
Migrations run automatically at boot, and every ADMIN_EMAILS entry is seeded
as an active admin. Sign in with the matching Google account.
Google OAuth setup
Create an OAuth client (type "Web application") at
Google Cloud Console → Credentials
and add the redirect URI {APP_URL}/auth/google/callback
(e.g. http://localhost:5173/auth/google/callback for dev).
Deployment (Docker)
cp .env.example .env # set SESSION_SECRET, Google credentials, ADMIN_EMAILS, APP_URL
docker compose up -d # app + PostgreSQL 17 with a persistent volume
The image is a multi-stage build (node:24-alpine, non-root, healthcheck on
/healthz). The server waits for Postgres and applies migrations before
listening. Set APP_URL to the public HTTPS URL — it is the OAuth issuer.
Connecting an MCP client
The MCP endpoint is {APP_URL}/mcp (Streamable HTTP).
After signing in, open /integrations for client-specific commands,
configuration files, authentication steps and troubleshooting.
- OAuth 2.1 (recommended): point the client at the URL; it discovers the
authorization server via
/.well-known/oauth-protected-resource, registers itself, and sends you to the consent screen. Manage/revoke access on the OAuth Clients page. - Personal access token: create one on the Access Tokens page and send
it as
Authorization: Bearer mcp_….
Scripts
| Command | Purpose |
|---|---|
npm run dev |
Dev server (SPA + backend, single process) |
npm run build / npm start |
Production build / run |
npm run typecheck · npm run lint · npm run test |
Checks (run in CI) |
node scripts/smoke.mjs |
End-to-end smoke test against a running dev server |
npm run db:generate |
Generate a migration after editing src/server/db/schema.ts |
Architecture
See docs/PLAN.md for the full design and CLAUDE.md
for project conventions (notably: URL search params are the source of truth for
all page-level UI state).
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。