Metadata-Version: 2.4
Name: iflow-mcp_i-akiya_shiranui
Version: 0.1.0
Summary: CDISC Library Retriever: A tool to retrieve the metadata from CDISC Library.
Author: Saikrishnareddy Yengannagari
Author-email: Ippei Akiya <ippei.akiya@gmail.com>
License-File: LICENSE
Requires-Python: >=3.11
Requires-Dist: beautifulsoup4>=4.12.3
Requires-Dist: fastmcp>=2.8.0
Requires-Dist: html2text>=2024.2.26
Requires-Dist: mcp[cli]>=1.2.0
Requires-Dist: pandas>=2.3.0
Requires-Dist: requests>=2.32.3
Description-Content-Type: text/markdown

# Shiranui
Shiranui is [the Model Context Protocol](https://modelcontextprotocol.io/introduction)(MCP) Server for retreiving the clinical standard contents in [the CDISC Library](https://library.cdisc.org/browser/#/).  
This MCP server is built with [Python FastMCP](https://github.com/jlowin/fastmcp).

https://github.com/user-attachments/assets/9cd7e1a6-2750-4910-bb03-763c323b9f22

## Support CDISC Library API
- v2 Biomedical Concept Endpoints
- v2 Dataset Specialization Endpoints
- Controlled Terminology Codelist Endpoints
- ADaM Variable Metadata Endpoints
- SDTM Metadata Endpoints
- CDASH Metadata Endpoints
- SEND Metadata Endpoints
- Search Tool

## Requirements
- [Python v3.13](https://www.python.org/downloads/) and [UV](https://docs.astral.sh/uv/getting-started/installation/) were installed on your device.
- You have the [CDISC Library API Key](https://api.developer.library.cdisc.org/signin?returnUrl=%2Fapi-details).
  
## Installation
Download Shiranui from the [Releases Page](https://github.com/i-akiya/Shiranui/releases).
### Mac and Linux
```bash
cd /your/shiranui/dir
uv sync
```
Set your API key as an environment variable named CDISC_LIBRARY_API_KEY.   
### Windows
Use back slash "\\" for path separator charactor.
```powershell
cd C:\your\shiranui\dir
uv sync
```
Set your API key as an environment variable named CDISC_LIBRARY_API_KEY.   
  
## Configure mcp client
### LM Studio
#### Mac and Linux
```
{
  "mcpServers": {
    "Shiranui": {
      "command": "uv",
      "args": [
        "run",
        "/full/path/to/shiranui/dir/.venv/bin/shiranui"
      ]
    }
  }
}
```
#### Windows
Use slash"/" for path separator charactor.
```
{
  "mcpServers": {
    "Shiranui": {
      "command": "uv",
      "args": [
        "run",
        "C:/full/path/to/shiranui/dir/.venv/Scripts/shiranui"
      ]
    }
  }
}
```
You need to replace "/full/path/to/shiranui/dir" to match your own environment.  
In addition to LM Studio, it may also work with Claude Desktop, Codename Goose, and other MCP Clients.

  
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
