nexidion-mcp
MCP server that exposes the Nexidion knowledge base as tools, enabling node management, search, and task creation through the MCP protocol. Supports stdio and OAuth-protected HTTP modes with per-user permissions.
README
nexidion-mcp
MCP server that exposes the Nexidion knowledge base as tools. Wraps the REST API — no raw SQL — so Nexidion's own auth and per-vault permissions still apply.
It runs in two modes, with two different identity models:
| stdio (Claude Code) | --http (claude.ai) |
|
|---|---|---|
| Where | your machine, over the LAN | nexidion-mcp container on the Pi |
| Reached at | subprocess on stdin/stdout | https://mcp.nexidion.org/mcp |
| Who it acts as | the shared mcp service user (id 11) |
the user who logged in, individually |
| Auth | password in .env |
OAuth 2.1 + PKCE (see below) |
| Tools | all 18 | 17 — no delete_node |
delete_node is deliberately not reachable from the public connector: it is
irreversible, and it is still one Claude Code session away.
Files
server.py— the tools, plus both transports.oauth.py— OAuth authorization server for the HTTP mode (state in SQLite).Dockerfile,requirements.txt— the image the Pi runs..env— stdio config:NEXIDION_BASE_URL,NEXIDION_USER,NEXIDION_PASSWORD(chmod 600, git-ignored).
stdio (Claude Code) — already registered, user scope
claude mcp add --scope user nexidion -- \
/home/rhab/projects/nexidion-mcp/.venv/bin/python \
/home/rhab/projects/nexidion-mcp/server.py
Verify: claude mcp list / claude mcp get nexidion. In a session: /mcp.
MCP tools load at session start — use a NEW session.
Self-test against the live API: .venv/bin/python server.py --selftest.
HTTP (claude.ai custom connector)
Add it in claude.ai under Settings → Connectors → Add custom connector, URL:
https://mcp.nexidion.org/mcp
Claude then registers itself (RFC 7591 dynamic client registration), redirects you to a login page served by this server, and you sign in with your own Nexidion username and password. Every tool call afterwards runs as that user.
How the auth actually works
claude.ai will only talk to a remote MCP server over OAuth, so this server is an
OAuth authorization server — the MCP SDK supplies the /authorize, /token and
/register handlers, oauth.py supplies the storage, and /login supplies the
one thing OAuth can't know: who the human is. That is answered by posting the
credentials to Nexidion's existing /api/auth/login.
The catch: Nexidion's own JWTs expire after 8 hours, and we never store your
password, so we cannot re-login for you later. Instead the container is given the
app's JWT_SECRET_KEY and mints a short-lived (5 min) Nexidion JWT per request
for the user bound to the access token. That is why the connector stays connected
indefinitely, and why this container is as security-critical as the app itself:
holding that key, it could forge a token for any user. It only ever does so after
that user has proved their password.
Tokens: access 1 h, refresh 90 days and rotated on every use. Only SHA-256 hashes
are stored. whoami reports which Nexidion user Claude is currently acting as.
Config (set by compose on the Pi, not by .env)
| var | value |
|---|---|
NEXIDION_BASE_URL |
http://nexidion:5001 (compose network) |
NEXIDION_PUBLIC_URL |
https://mcp.nexidion.org |
JWT_SECRET_KEY |
same secret the Flask app signs with |
MCP_STATE_DB |
/state/oauth_state.db (volume nexidion_mcp-state) |
Deploy
Cross-build on WSL, push to Hub, pin by digest — same rule as the app, so there is always a digest to roll back to:
docker buildx build --builder nxbuilder --platform linux/arm64 \
-f Dockerfile -t rhabermann/nexidion-mcp:vN --push .
docker buildx imagetools inspect rhabermann/nexidion-mcp:vN --format '{{.Manifest.Digest}}'
# then on the Pi: put that digest in ~/nexidion/docker-compose.yml
ssh rhab@192.168.178.63 'cd ~/nexidion && docker compose pull mcp && docker compose up -d --no-deps mcp'
Wiping nexidion_mcp-state forces every connector to re-authorize — that is the
kill switch if a token ever leaks:
docker compose rm -sf mcp && docker volume rm nexidion_mcp-state && docker compose up -d --no-deps mcp
Tools
Reads: whoami, list_vaults, get_vault, list_nodes, get_node, search (full-text), find_node_by_title, get_node_versions, get_version, bulk_get_nodes, list_tasks, get_task.
Writes: create_node, update_node, move_node, set_summary, create_task (queues the
Nexidion AI agent). delete_node (destructive) — stdio only.
Permissions (~/.claude/settings.json)
Reads + non-destructive writes + create_task are allowlisted (mcp__nexidion__*).
delete_node is in ask → always prompts.
Admin
- stdio base URL points at the Pi over the LAN (
http://192.168.178.63:5001). For off-LAN use, switchNEXIDION_BASE_URLtohttps://caddy.nexidion.orgin.env. - The
mcpuser has editor on all 10 vaults. To revoke a vault, remove itsVaultAccessrow for user 11 (via the app's Admin UI, or the service layer). - To rotate the
mcppassword: reset it for usermcpand update.env. - Rotating
JWT_SECRET_KEYlogs everyone out of the app and invalidates the connector's minted JWTs — restart both containers together.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。