Skip to main content
Glama
botanicastudios

Crossref MCP Server

Crossref MCP 服务器

用于与 Crossref API 交互的模型上下文协议 (MCP) 服务器。

特征

  • 按标题搜索作品

  • 按作者搜索作品

  • 通过 DOI 获取工作详细信息

Related MCP server: ArXiv-MCP

安装

{
  "mcpServers": {
    "crossref": {
      "command": "npx",
      "args": [
        "-y",
        "@botanicastudios/crossref-mcp"
      ]
    }
  }
}

用法

该服务器提供三个主要工具:

1. 按标题搜索

在 Crossref 中按标题搜索作品:

// Example: Search for works containing "quantum computing" in the title
{
  "title": "quantum computing",
  "rows": 5  // Optional, defaults to 5
}

2. 按作者搜索

在 Crossref 中按作者搜索作品:

// Example: Search for works by "Einstein"
{
  "author": "Einstein",
  "rows": 5  // Optional, defaults to 5
}

3. 通过 DOI 获取作品

使用 DOI 检索特定作品:

// Example: Get work with DOI "10.1088/1742-6596/1398/1/012023"
{
  "doi": "10.1088/1742-6596/1398/1/012023"
}

响应格式

所有响应均以以下格式的结构化 JSON 对象返回:

对于成功的搜索:

{
  "status": "success",
  "query": {
    /* the original query parameters */
  },
  "count": 5,
  "results": [
    {
      "title": "Work title",
      "authors": [
        {
          "given": "First name",
          "family": "Last name",
          "name": "First name Last name"
        }
      ],
      "published": {
        "dateParts": [2023, 1, 15],
        "dateString": "2023-1-15"
      },
      "type": "journal-article",
      "doi": "10.xxxx/xxxxx",
      "url": "https://doi.org/10.xxxx/xxxxx",
      "container": "Journal Name",
      "publisher": "Publisher Name",
      "issue": "1",
      "volume": "42",
      "abstract": "This is the abstract of the work, if available."
    }
    // additional results...
  ]
}

对于单个 DOI 查找:

{
  "status": "success",
  "query": { "doi": "10.xxxx/xxxxx" },
  "result": {
    // work details as shown above
  }
}

对于错误或无结果:

{
  "status": "error" | "no_results" | "not_found",
  "message": "Error message" | null,
  "query": { /* the original query parameters */ }
}

测试

该服务器附带使用 Vitest 的全面测试套件。测试涵盖所有可用工具,并涵盖各种场景,包括成功响应、空结果和错误处理。

运行测试

npm test

测试结构

这些测试使用 Vitest 的模拟功能来模拟 Crossref API 响应,而无需发出实际的网络请求。测试结构包括:

  1. 模拟数据:标题搜索、作者搜索和 DOI 查找的示例响应

  2. 模拟处理程序mcp-server-test-handlers.js中的处理程序函数的测试版本

  3. 测试用例:针对所有工具的测试,涵盖:

    • 成功的 API 响应

    • 空结果集

    • 错误处理和网络故障

扩展测试

要添加更多测试用例:

  1. 如果需要,将新的模拟数据添加到测试文件

  2. 在相关的描述块中创建额外的测试用例

  3. 使用mockFetchResponse()助手来模拟 API 响应

例子:

it("should handle a new edge case", async () => {
  // Mock the response
  mockFetchResponse({
    // Your sample response data
  });

  // Call the handler
  const result = await handlers.searchByTitle({ title: "example" });

  // Assert the expected results
  expect(result).toMatchObject({
    // Expected response structure
  });
});

Available Tools

3 tools
getWorkByDOIC

Retrieve a specific scientific paper by its DOI

ParametersJSON Schema
NameRequiredDescriptionDefault
doiYesThe DOI to look up

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden for behavioral disclosure. It states the retrieval action but doesn't mention error handling (e.g., invalid DOI), rate limits, authentication needs, or what happens if the paper isn't found. For a tool with zero annotation coverage, this leaves significant behavioral gaps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that gets straight to the point with zero wasted words. It's appropriately sized for this simple lookup tool and front-loads the essential information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the lack of annotations and output schema, the description is insufficiently complete. It doesn't explain what format the paper is returned in (metadata, full text, citation), error conditions, or any limitations. For a retrieval tool with no structured output documentation, more context is needed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents the 'doi' parameter adequately. The description adds no additional parameter semantics beyond what's in the schema, maintaining the baseline score for high schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Retrieve') and resource ('specific scientific paper by its DOI'), making the purpose immediately understandable. It doesn't explicitly distinguish from sibling tools (searchByAuthor, searchByTitle), but the DOI-based retrieval is inherently different from author/title searches.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided about when to use this tool versus the sibling search tools. The description implies it's for DOI-based lookups, but there's no explicit comparison or mention of alternatives, leaving the agent to infer usage context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

searchByAuthorC

Search for scientific papers by author in Crossref

ParametersJSON Schema
NameRequiredDescriptionDefault
authorYesThe author name to search for
rowsNoNumber of results to return

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden for behavioral disclosure. It states the tool searches but doesn't mention whether it's read-only, what happens on errors, rate limits, authentication needs, or response format. For a search tool with zero annotation coverage, this leaves significant behavioral gaps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence with zero waste. It's appropriately sized and front-loaded with the core purpose, making it easy for an agent to parse quickly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no annotations, no output schema, and a search tool that likely returns complex results, the description is incomplete. It doesn't explain what the search returns, how results are structured, or any behavioral constraints. For a tool with this complexity and lack of structured data, more context is needed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents both parameters ('author' and 'rows') with descriptions. The description doesn't add any parameter details beyond what's in the schema, such as search syntax or result ordering. Baseline 3 is appropriate when schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Search for scientific papers') and resource ('by author in Crossref'), providing a specific verb+resource combination. However, it doesn't explicitly differentiate from sibling tools like 'searchByTitle' or 'getWorkByDOI' beyond the 'by author' qualifier, which is why it doesn't reach a perfect score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives like 'searchByTitle' or 'getWorkByDOI'. There's no mention of use cases, prerequisites, or exclusions, leaving the agent to infer usage from the tool name alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

searchByTitleC

Search for scientific papers by title in Crossref

ParametersJSON Schema
NameRequiredDescriptionDefault
titleYesThe title to search for
rowsNoNumber of results to return

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden for behavioral disclosure. It states the search function but doesn't mention rate limits, authentication requirements, error handling, or what the response format looks like (beyond 'scientific papers'). This leaves significant gaps for a tool with potential external API constraints.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that communicates the core purpose without unnecessary words. It's appropriately sized for a simple search tool and front-loads the essential information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the lack of annotations and output schema, the description is insufficiently complete. It doesn't explain what the search returns (beyond 'scientific papers'), how results are structured, or any limitations of the Crossref API. For a search tool with external dependencies, more context is needed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the input schema already fully documents both parameters. The description adds no additional parameter semantics beyond what's in the schema (e.g., search behavior, title matching rules, result ordering). The baseline score of 3 reflects adequate but minimal value addition.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Search for scientific papers') and resource ('by title in Crossref'), providing a specific verb+resource combination. However, it doesn't explicitly differentiate from sibling tools like 'searchByAuthor' or 'getWorkByDOI', which would be needed for a perfect score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives like 'searchByAuthor' or 'getWorkByDOI'. There's no mention of use cases, prerequisites, or comparative advantages, leaving the agent without context for tool selection.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

TDQS

B3.1/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose: retrieving a paper by DOI, searching by author, and searching by title. There is no overlap in functionality, making it easy for an agent to select the appropriate tool based on the query.

Naming Consistency4/5

The naming follows a consistent verb_noun pattern (getWorkByDOI, searchByAuthor, searchByTitle), with all tools using camelCase. However, the slight inconsistency in 'getWorkByDOI' (using 'Work' instead of 'Paper' or a more specific term) is a minor deviation from perfect alignment with the domain.

Tool Count3/5

With only 3 tools, the server feels thin for a Crossref domain that typically involves broader operations like searching by keyword, year, or journal. While the tools cover basic retrieval and search, the count is borderline low for comprehensive scientific paper access.

Completeness2/5

The tool surface has significant gaps for a Crossref server. Missing operations include searching by keyword, year, or journal, as well as CRUD-like actions such as listing or filtering results. This incompleteness will likely cause agent failures when handling common academic queries.

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    B
    maintenance
    A Model Context Protocol server that provides access to the DBLP computer science bibliography database, allowing AI models to search publications, process citations, and generate accurate BibTeX entries.
    6
    43
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol server that enables AI agents to search, retrieve, and analyze academic papers from arXiv, supporting features like keyword search, paper details retrieval, content extraction, and paper analysis.
    4
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    A comprehensive Model Context Protocol server that provides AI assistants with direct access to Semantic Scholar's academic database, enabling advanced paper discovery, citation analysis, author research, and AI-powered recommendations.
    16
    -

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/botanicastudios/crossref-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server