npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

giiisp-arxiv-mcp

v1.1.0

Published

MCP服务器用于搜索ArXiv论文摘要,基于Giiisp API

Readme

Giiisp ArXiv 摘要搜索 MCP 服务器

npm version License: MIT Node.js Version

基于模型上下文协议(MCP)的ArXiv论文摘要搜索服务器,通过Giiisp API提供便捷的学术论文摘要搜索功能。

✨ 功能特性

  • 🔍 摘要搜索 - 根据摘要内容关键词搜索ArXiv论文
  • 📝 智能匹配 - 在论文摘要中精确匹配搜索关键词
  • 快速响应 - 30秒超时,优化性能
  • 🛡️ 健壮的错误处理 - 全面的错误管理机制
  • 📊 详细日志记录 - 便于调试的日志系统
  • 🔧 简单集成 - 简洁的MCP协议实现
  • 📄 灵活分页 - 可自定义返回数据条数

🚀 快速开始

安装

npm install -g giiisp-arxiv-mcp

使用方式

作为全局命令

giiisp-arxiv-mcp

作为MCP服务器

服务器将启动并监听通过stdio的MCP协议消息。

与Claude Desktop集成

要在Claude Desktop中使用此MCP服务器,请将以下内容添加到您的Claude Desktop配置文件中:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "giiisp-arxiv-mcp": {
      "command": "npx",
      "args": ["-y", "giiisp-arxiv-mcp"]
    }
  }
}

添加此配置后,重启Claude Desktop,您就可以通过MCP接口直接搜索ArXiv论文了。

开发安装

git clone https://github.com/giiisp/giiisp-arxiv-mcp.git
cd giiisp-arxiv-mcp
npm install
npm start

📖 使用说明

MCP工具集成

服务器提供searchArxivByAbstract工具用于搜索ArXiv论文摘要:

参数:

  • key (字符串, 必需): 搜索关键词,用于在论文摘要内容中搜索
  • pageSize (数字, 可选): 返回的数据条数,默认为10

搜索说明: 此服务专门用于在ArXiv论文的摘要部分进行关键词搜索,能够精确匹配摘要内容中的相关术语和概念。

示例:

基本摘要搜索:

{
  "name": "searchArxivByAbstract",
  "arguments": {
    "key": "artificial intelligence"
  }
}

自定义返回条数的摘要搜索:

{
  "name": "searchArxivByAbstract",
  "arguments": {
    "key": "machine learning",
    "pageSize": 20
  }
}

中文摘要关键词搜索:

{
  "name": "searchArxivByAbstract",
  "arguments": {
    "key": "深度学习",
    "pageSize": 5
  }
}

响应格式:

{
  "success": true,
  "status": 200,
  "data": {
    // API响应数据,包含论文信息
  },
  "message": "ArXiv论文摘要搜索完成",
  "searchParams": {
    "key": "artificial intelligence",
    "pageSize": 10
  }
}

🔧 技术细节

  • 超时时间: 30秒
  • 请求头: 自动设置Content-Type和User-Agent
  • 错误处理: 区分网络、API和超时错误
  • 日志记录: 详细的请求和响应日志

🛠️ 错误处理

服务器处理以下错误类型:

  • 超时错误: 请求超过30秒
  • 网络错误: 无法连接到API服务器
  • API错误: 服务器返回错误状态码
  • 参数错误: 缺少必需参数或类型不正确

🧪 测试

运行测试套件:

npm test

这将测试:

  • API连接性
  • 参数验证
  • 错误处理

📁 项目结构

├── server.js              # 主服务器文件
├── package.json           # 项目配置和依赖
├── README.md             # 项目文档
├── LICENSE               # MIT许可证
├── .gitignore           # Git忽略规则
└── test/
    └── test-api.js       # 测试套件

🚀 开发

调试模式

使用Node.js调试器运行调试模式:

npm run dev

在调试器中设置断点进行开发。

贡献

  1. Fork仓库
  2. 创建功能分支
  3. 进行更改
  4. 为新功能添加测试
  5. 提交拉取请求

📄 许可证

MIT许可证 - 详见LICENSE文件。

🤝 支持

🔗 相关链接