Geektastic MCP Server
A self-hosted MCP server with a web UI that integrates Geektastic Realms, enabling management of statblocks, campaigns, lore entries, and adventure modules through MCP clients.
README
Geektastic MCP Server
A self-hosted MCP (Model Context Protocol) server with a Web management UI that exposes the Geektastic Realms application to MCP clients (Claude Desktop/Code and others). Deploys as a Docker stack via Portainer, and is architected so additional applications can be plugged in over time.
- Integration: Geektastic Realms REST/HTTP API
- Stack: TypeScript full-stack (Node +
@modelcontextprotocol/sdkbackend, React UI) - MCP transport: Streamable HTTP (remote clients, bearer-token auth)
- Storage: PostgreSQL (Prisma ORM)
- Access: multi-user Web login with roles (admin + member), admin-managed accounts
- Web UI: connections & secrets, per-tool enable/disable, logs & monitoring, tool testing playground, user management
See ROADMAP.md for the full architecture, data model, and phased delivery plan.
Status
Deployed and running (see CHANGELOG.md for the release history: the
initial scaffold, OAuth 2.1 support for Claude Desktop/Claude.ai, and a CSRF/session
fix). The Geektastic Realms connector is implemented against the real /api/v1/* API
(see geektastic-realms/Docs/API.md) — statblocks, campaigns, generic lore entries
(any category, with custom fields), and adventure modules (Acts/Chapters/Scenes/
Appendices, Encounters, Handouts). See ROADMAP.md for the full tool
list and what's still ahead (Roll Tables aren't exposed yet).
Repository layout
apps/server/ Node + Express backend: /api (management) and /mcp (Streamable HTTP)
apps/web/ React + Vite admin UI (built into apps/server/public)
packages/shared/ Types shared between server and web
packages/connectors/ AppConnector abstraction + the Geektastic Realms connector
Getting started
-
Copy the env template and fill in real values:
cp .env.example .envGenerate
APP_ENCRYPTION_KEYwithopenssl rand -hex 32, and a long randomSESSION_SECRET. Set a realADMIN_PASSWORD— it's only used to seed the first admin account on first run. SetPUBLIC_BASE_URLto this server's own externally-reachable origin (e.g.https://mcp.example.com) — required for OAuth discovery metadata (see "Connecting an MCP client" below). -
Install dependencies (requires Node 22+ and pnpm;
corepack enablewill provide pnpm):pnpm install -
Generate the Prisma client and sync the schema to your Postgres instance:
pnpm prisma:generate pnpm prisma:pushNo Prisma migrations are checked in yet — see Known gaps below.
-
Run the server and web UI in dev mode (two terminals):
pnpm dev:server pnpm dev:webThe web dev server proxies
/apiand/healthtolocalhost:8080(seeapps/web/vite.config.ts). -
Or build and run everything as it will run in Docker:
pnpm build pnpm --filter @geektastic/server start
Docker / Portainer deployment
docker compose up -d --build
This builds the multi-stage Dockerfile (node:22-alpine) and starts it alongside the
official postgres:16-alpine image, per docker-compose.yml. Import the same
docker-compose.yml into Portainer as a Stack, and set the env vars from .env.example
in the stack's environment section. pgdata is a named volume, so config/secrets/users
persist across redeploys.
Connecting an MCP client
First, log in to the Web UI with the bootstrap admin and add a Geektastic Realms connection under Connections.
Claude Code CLI — uses a static Bearer token. Create one under Tokens (shown once, copy it), then:
claude mcp add --transport http geektastic https://<host>/mcp \
--header "Authorization: Bearer <token>"
Claude Desktop / Claude.ai (Custom Connector) — these only support OAuth 2.1, not a
raw header. Add a Custom Connector pointed at https://<host>/mcp; the server supports
Dynamic Client Registration, so Claude should register itself automatically and prompt
you to log in and approve access — no manual "OAuth Client ID" needed in the common
case. If a connector's setup screen doesn't attempt DCR and asks you to fill in a Client
ID manually, create one under OAuth Clients (name + Claude's redirect URI,
https://claude.ai/api/mcp/auth_callback) and paste the generated Client ID in.
scripts/verify-oauth.sh <host> <admin-username> <admin-password> simulates the full
OAuth flow via curl if you want to sanity-check the server side without a Claude.ai
account.
Known gaps / next steps
- No Prisma migration history yet. The container currently runs
prisma db pushon startup instead ofprisma migrate deploy(see the note inDockerfile). Once the schema is validated against a real database, runprisma migrate dev --name initlocally and commit the generatedapps/server/prisma/migrations/folder, then switch the Dockerfile back tomigrate deployfor safer, trackable schema changes. - Nothing has been
pnpm installed, type-checked, or run. Expect some rough edges (dependency versions, minor type errors) on the first real build — this was scaffolded without running installers, per the plan. - No automated tests yet.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。