# Cinii Mcp Server

> CiNiiで学術論文を検索するMCPサーバー / MCP server for searching academic papers on CiNii

- **Type:** MCP server
- **Install:** `agentstack add mcp-suzuuuuu09-cinii-mcp-server`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [suzuuuuu09](https://agentstack.voostack.com/s/suzuuuuu09)
- **Installs:** 0
- **Category:** [Integrations](https://agentstack.voostack.com/c/integrations)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [suzuuuuu09](https://github.com/suzuuuuu09)
- **Source:** https://github.com/suzuuuuu09/cinii-mcp-server

## Install

```sh
agentstack add mcp-suzuuuuu09-cinii-mcp-server
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# CiNii MCP Server

## Setup

```shell
uv sync --no-dev
```

Please set the directory path and the `CINII_APP_ID`.

```json
{
  "mcpServers": {
    "cinii-mcp-server": {
      "command": "uv",
      "args": [
        "--directory",
        "",
        "run",
        "server.py"
      ],
      "env": {
        "CINII_APP_ID": ""
      },
    }
  }
}
```

## API Key Registration

1. Access [CiNii API Registration](https://support.nii.ac.jp/ja/cinii/api/developer)
2. Find and access the link for "CiNii Web API Developer Registration".
3. Upon accessing, a registration form will appear. Fill in the necessary information and submit your application.
4. After submission, your Application ID will be sent to you via email.

## Usage

### Python API

```python
from lib.cinii import CiNiiClient, SortOrder, SearchRange

client = CiNiiClient(appid="your_app_id")

# Basic search
results = client.advanced_search({
    "query": "機械学習",
    "max_results":  10
})

# Advanced search with filters
results = client.advanced_search({
    "query": "Deep Learning",
    "max_results": 20,
    "sortorder": SortOrder.PUBLICATION_YEAR_DESC,  # Publication year, descending
    "range": SearchRange.HAS_BODY_IN_CINII,        # The full text is available on CiNii.
    "year_from": 2020,
    "year_to": 2024
})

# Or you can also use numeric values for the search Options
results = client.advanced_search({
    "query": "Deep Learning",
    "max_results": 20,
    "sortorder": 1,  # Publication year, descending
    "range": 1,      # The full text is available on CiNii.
    "year_from": 2020,
    "year_to": 2024
})
```

### Sort Order Options

- `SortOrder.PUBLICATION_YEAR_DESC` (1): Publication year descending
- `SortOrder.PUBLICATION_YEAR_ASC` (2): Publication year ascending
- `SortOrder.TITLE_DESC` (3): Title descending
- `SortOrder.TITLE_ASC` (4): Title ascending
- `SortOrder.JOURNAL_DESC` (5): Journal descending
- `SortOrder.JOURNAL_ASC` (6): Journal ascending
- `SortOrder.CITATION_DESC` (7): Citation count descending

### Search Range Options

- `SearchRange.ALL` (0): All
- `SearchRange.HAS_BODY_IN_CINII` (1): Body exists in CiNii
- `SearchRange.HAS_BODY_OR_LINK` (2): Body exists in CiNii, or link exists in linked services

## Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [suzuuuuu09](https://github.com/suzuuuuu09)
- **Source:** [suzuuuuu09/cinii-mcp-server](https://github.com/suzuuuuu09/cinii-mcp-server)
- **License:** Apache-2.0

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/mcp-suzuuuuu09-cinii-mcp-server
- Seller: https://agentstack.voostack.com/s/suzuuuuu09
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
