best-practices-mcp
Enables searching ServiceNow's public best-practices library across content types without authentication.
README
best-practices-mcp
MCP server exposing a servicenow_search tool that searches mynow.servicenow.com —
ServiceNow's public best-practices library/landing page — across content types (Best
Practices, Product Documentation, Developer Portal docs, Now Community posts, and more).
No authentication required
mynow.servicenow.com is a public site — there's no login, token, or API key needed. It's
not a traditional SSO-protected ServiceNow instance; it's a public-facing Now Experience app
running in "Genius Search" / guest-session mode.
There's also no public, documented REST API for its search — it's reverse-engineered from a
Playwright network capture of the site's own search UI (see scripts/probe.ts and
src/servicenow/search.ts for the confirmed request/response shape). The flow:
GETany page on the site → returns a guest session cookie plus a CSRF token embedded in the HTML aswindow.g_ck.POST /api/now/v1/batch, wrapping a GraphQL call to the site's Genius Search data broker, using that cookie + token.- Parse
result[0].executionResult.output.data.GlideSearch_Query.searchfor results, facets, and total hit count.
This was confirmed with a cold, browser-free curl round-trip (no Playwright, no reused session) — genuinely unauthenticated, not just working because of a live browser session.
If search ever stops working, the site's frontend likely changed one of the fixed config
IDs in src/servicenow/search.ts (SEARCH_DEFINITION_SYS_ID, SEARCH_CONTEXT_CONFIG_ID,
SEARCH_EVAM_CONFIG_ID). Re-discover them with a fresh Playwright capture filtered to
xhr/fetch traffic (write to a file, grep it — never dump raw capture output into a
conversation) rather than guessing. Then re-run npm run probe to confirm.
Development
npm install
npm run dev # run the server directly with tsx (stdio transport)
npm run build # compile to dist/
npm start # run compiled dist/index.js
npm run probe -- "some query" # verify the live search flow still works
Testing with MCP Inspector
npx @modelcontextprotocol/inspector npm run dev
Using with Claude Code / Claude Desktop
claude mcp add --scope user best-practices-mcp -- node "C:/dev/best-practices-mcp/dist/index.js"
No environment variables are required — SN_INSTANCE_URL defaults to
https://mynow.servicenow.com and only needs overriding if pointing at a different instance.
Pagination
The API returns a fixed 10 rows per request and pages via an opaque
paginationToken (base64 of an internal offset breadcrumb, e.g. offset:0,10). Use offset
to page through the full corpus and limit to control how many rows you get back:
offsetis a row index into the full corpus (offset=10→ second page,offset=20→ third, etc.). It's implemented by constructing a token that jumps directly to that row — the server doesn't validate the breadcrumb, so any offset is random-accessible in a single request.limit(1–50) can exceed the 10-row page size; the server is paged internally (ceil(limit / 10)requests, following the API's own returned token after the initial jump) to gather that many rows.hasMorein the response is true when more results exist beyondoffset + limit(offset + limit < totalResults).
Because the offset jump relies on the reverse-engineered token format, npm run probe exercises
offset paging end-to-end — if the encoding ever changes, re-discover it from a fresh capture (see
below) rather than guessing.
Known limitations
contentTypefilters client-side by matching the result's owntableor content-type label — there's no separate discovery tool for valid values yet. An unfiltered search's results carry their owntable/contentTypeLabel, which is enough to learn valid filters organically;contentTypeFiltersin the response also lists all available content types with live counts for the current query.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。