idnow-mcp-server
An MCP server that lets LLM agents operate the IDnow Trust Platform sandbox to list verification flows, create sessions, check sessions, and get session details.
README
IDnow Trust Platform MCP Server (Assignment)
Introduction
An MCP server that lets an LLM agents operate the IDnow Trust Platform sandbox - list the
verification flows on the account, kick off a new identity-verification session, check on
existing sessions, and pull full detail on one specific session. IDnow's customers are banks
and fintechs that need to verify their own customers remotely: a "flow" is a verification strategy
(video KYC, document scan, etc.), a "session" is one verification attempt for one person, and
the playerUrl a session returns is the link that person opens to actually go through verification.
This server is a small version of how those customers' own agents would eventually orchestrate that flow.
Everything here runs against the real IDnow sandbox (staging environment) - nothing is mocked.
Setup & Run
git clone https://github.com/DevMohith/idnow-mcp-server.git
npm install
-
That's it - no
.env, no config step. Credentials are hardcoded insrc/config.js, which is exactly what the assignment asked for ("fine to put it directly in the code to keep things simple"). -
In a real production integration these would live in a secrets manager and get injected at *runtime, never committed - that's a scope choice for this assignment, not an oversight.
for running it, and pointing an LLM client at it
There are three ways i designed to actually talk to this server, depending on what you're trying to check.
Before jumping I want to let you know - This server uses #stdio transport pipes, so it only works when the client and server are on the same machine :
- the client spawn the server for you using the path in its config,
- no manual "run the server" step needed.
- A cloud-based client would need the server hosted separately over HTTP (Cloudflare Tunnel or VPS server)
Option A - Claude Desktop (the real end-to-end demo) with prettier print
Edit your Claude Desktop config:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"idnow": {
"command": "node",
"args": ["/ABSOLUTE/PATH/TO/idnow-mcp-server/src/server.js"]
}
}
}
For e.g. - Absolute Path looks like below ("C:\Users\mohithtummala\Desktop\idnow-mcp-server\src\server.js")
Restart Claude Desktop fully (not just the window - check it's not still running in the
background tasks or tray), and the 4 tools show up under [+ icon -> connectors -> manage connectors -> idnow] .
This is the setup transcript.md was captured against.
Option B - Claude Code (CLI)
If you've got the claude CLI installed, this is the fastest way to try it:
cd idnow-mcp-server
claude mcp add idnow -- node src/server.js
claude
Then just talk to it naturally - "which verification flows can I use?" and so on.
Option C - MCP Inspector (protocol-level, no LLM involved, Developer tool)
Useful for checking the raw tool schemas and responses without an LLM in the loop at all:
npm run mcp-inspector
opens a browser UI automatically, or for scripting/CI-style checks, the CLI mode works well:
This is how the tool schemas and error responses in this project were actually verified during development, independent of any particular chat client.
Other Options (e.g. Cursor, Cline)
Use mcp config provided in option A, to connect to the local mcp clients uses STDIN, STDOUT pipelines.
Architecture
Four files, each with one job:
src/config.js - The sandbox credentials and URLs, in one place <br>
src/auth.js - OAuth2 client-credentials token manager — in-memory cache, 60s early-refresh buffer, in-flight request de-duplication, forceRefresh for 401 recovery <br>
src/api.js - 4 endpoint functions, a shared request() helper with one-time 401 retry, and toCleanError() centralizing all error message formatting <br>
src/server.js - FastMCP tool registration - 4 tools with Zod schemas and descriptions written for chaining, UserError wrapping so failures surface as clean tool errors <br>
Transport is stdio, schemas are Zod, HTTP is axios - this is the stack I followed, and there's no database or Docker involved; state lives in-memory only, which is explicitly stated fine in Assignment.
The 4 tools in server.js
| Tool | Purpose | Endpoint |
list_flows - List available verification flows (GET /api/v1/flows/staging) <br>
create_session - Start a new session for a flow (POST /api/v1/flows/{flowId}/staging/sessions) <br>
list_sessions - List sessions for a flow (defaults to the first flow if none given) (GET /api/v1/flows/{flowId}/staging/sessions) <br>
get_session - Full detail on one session (GET /api/v1/staging/sessions/{sessionId})
Results / Verification
See transcript.md for verification of the three prompts working against the sandbox
- all four tools working end-to-end, including tool chaining and error handling tests.
Testing
npm test # tests/auth.test.js - proves getToken() fetches and caches it rather than re-authenticatrin on every call.
npm run smoke # scripts/smoke.js - This is where i started testing, walks all 4 endpoints against the live sandbox, prints results
The two are kept separate on purpose: npm test should be fast, deterministic, and side-effect
free, while the smoke script deliberately creates a real session every time it runs, which isn't
something you want happening on every npm test.
Design choices & trade-offs
-
Stack: Node.js + official MCP SDK + FastMCP SDK + Zod Input Validation + axios + Node test + assert runtime-checks
-
Transport: stdio, MCP's default - kept simple; an HTTP/SSE transport would remove the local-config step for a real deployment, I would extend in production.
-
MCP SDK: used FastMCP abstraction of official MCP SDK, which the brief explicitly allows either, mainly for the Zod-schema-to-tool-schema generation.
-
Client secret: hardcoded in
config.js, per the assignment's own instruction ("fine to put it directly in the code to keep things simple") - not an oversight, i would use secret manager and .env in prod. -
Real sandbox only: every response shape documented above, and everything in
transcript.md, came from actually hittingidnow.sx- nothing here is mocked or guessed. -
list_sessionsstatus filter runs client-side, not server-side: Verified directly against the live sandbox — and cross-checked IDnow's own docs - that the sessions-listing endpoint has no working status filter parameter; So added filter expression onlistSessions()fetches the full list first and filters bysessionStatusin JavaScript instead.
A note on AI usage
This was built by contesting on AI-generated code rather than completely accepting everything it given - for example, the initial auth module re-authenticated on every call; I added expiry tracking and in-flight deduplication.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。