Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CNKI_UANoCustom User-Agent string.built-in Chrome UA
NO_PROXYNoComma-separated domains that bypass the proxy, e.g. kns.cnki.net,www.cnki.net.
HTTP_PROXYNoHTTP proxy URL, used together with NODE_USE_ENV_PROXY=1.
HTTPS_PROXYNoHTTPS proxy URL, used together with NODE_USE_ENV_PROXY=1.
CNKI_AUTO_WARMNoAutomatically re-solve the slider captcha when the session becomes invalid (1 = enabled).1
CNKI_STATE_DIRNoDirectory where the session, cache, and quota state files are stored.~/.pi/agent/state/cnki-mcp
CNKI_MIN_GAP_MSNoMinimum interval in milliseconds between two requests (global serial throttling).2000
CNKI_TIMEOUT_MSNoPer-request timeout in milliseconds.30000
CNKI_DAILY_QUOTANoRolling 24-hour request limit.300
CNKI_CACHE_TTL_MSNoQuery cache TTL in milliseconds.86400000
NODE_USE_ENV_PROXYNoNode >= 24 option that makes the built-in fetch honor HTTP_PROXY / HTTPS_PROXY environment variables.1
NODE_EXTRA_CA_CERTSNoPath to additional trusted root certificates, needed when a corporate gateway performs TLS interception.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
cnki_searchA

检索中国知网(CNKI)。返回题名、作者、来源刊、发表时间、被引、下载量与详情页 URL。慢速串行、带 24h 缓存与每日配额。

cnki_get_paper_detailA

根据详情页 URL 抓取完整元数据:题名、作者、机构、刊名/年/卷/期/页、DOI、摘要、关键词、基金、分类号,并本地生成 GB/T 7714、APA、BibTeX、RIS 引文。

cnki_citeA

批量抓取多条文献并只返回引文文本(GB/T 7714 / APA / BibTeX / RIS)。可直接粘进 Zotero 或稿件。

cnki_warmA

重新通过安全验证(自动解拼图滑块)并保存 cookie 会话。会话失效或换网络后调用。

cnki_statusA

显示 cookie 会话状态、今日请求配额、缓存条数与当前配置。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.8/5.0

Scored across 5 tools

Disambiguation4/5

Each tool has a clear anchor: session warm-up, search, single-paper metadata, batch citations, and status. The only real overlap is between cnki_get_paper_detail and cnki_cite, which both fetch metadata and emit citations, but the descriptions differentiate them (single paper + full metadata vs. batch + citation text only) well enough to avoid misselection.

Naming Consistency5/5

All tools share the cnki_ prefix and snake_case with an action-oriented second segment (warm, search, get_paper_detail, cite, status). The pattern is predictable and readable throughout.

Tool Count4/5

Five tools map cleanly onto the domain's lifecycle (auth, search, detail, cite, diagnostics) with no filler. It is slightly lean — no export or batch-search variant — but nothing feels redundant.

Completeness4/5

The path search → detail → cite is fully covered, plus session recovery and quota introspection which are real operational needs for a scraped source. Minor gaps remain around advanced querying (author/journal filters, pagination control) and bulk export, but agents can work around them with the existing tools.