fairsharing-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
fairsharing-mcp
An MCP (Model Context Protocol) server that exposes the FAIRsharing GraphQL API as 97 tools for discovering, analyzing, and comparing data standards, databases, and policies in life sciences research.
FAIRsharing is a curated registry of standards, databases, and data policies used and recommended by journals, funders, and institutions. This MCP server gives AI assistants structured access to its knowledge graph.
Prerequisites
Python 3.10+
uv (recommended) or pip
A FAIRsharing API key (free — register at fairsharing.org)
Related MCP server: OpenAIRE MCP Server
Installation
git clone https://github.com/fairsharing/fairsharing-mcp.git
cd fairsharing-mcp
uv syncRunning the Applications
MCP Server (for Claude Desktop, VS Code, etc.)
# Set your API key
export FAIRSHARING_API_KEY=your-api-key
# Start the MCP server (stdio transport)
uv run fairsharing-mcpThe server communicates over stdout/stdin (stdio transport). It is typically launched automatically by your MCP client (Claude Desktop, VS Code Copilot, etc.) — you do not need to start it manually.
Streamlit Chat UI
A browser-based chatbot interface is included in the clients/ directory.
Step 1 — Create a .env file in the project root:
# Required
FAIRSHARING_API_KEY=your-api-key
# Optional: choose LLM provider (default: openai_agents)
# LLM_PROVIDER=openai_agents
# OPENAI_API_KEY=your-openai-key
# OPENAI_MODEL=gpt-4oStep 2 — Install client dependencies:
uv sync
# If using the OpenAI Agents provider:
pip install openai-agentsStep 3 — Start the app:
streamlit run clients/app.pyThe app opens at http://localhost:8501.
Features:
Conversational interface backed by the full MCP tool suite
Copy-to-clipboard button on every assistant response
Session conversation logging to
logs/conversations/Clear conversation button
REPL (Command-line)
For quick terminal-based interaction:
python -m clients.replMCP Client Configuration
Claude Desktop
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows):
{
"mcpServers": {
"fairsharing": {
"command": "uv",
"args": ["--directory", "/path/to/fairsharing-mcp", "run", "fairsharing-mcp"],
"env": {
"FAIRSHARING_API_KEY": "your-api-key"
}
}
}
}VS Code (Copilot / Claude Code)
Add to .vscode/settings.json:
{
"mcp": {
"servers": {
"fairsharing": {
"command": "uv",
"args": ["--directory", "/path/to/fairsharing-mcp", "run", "fairsharing-mcp"],
"env": {
"FAIRSHARING_API_KEY": "your-api-key"
}
}
}
}
}Environment Variables
Variable | Required | Description |
| Yes | API key from fairsharing.org |
| No | GraphQL endpoint (default: |
| No | Max records to scan for date filtering (default: 2000, max: 50000) |
| No | Max results per page (default: 50, API cap: 50) |
| No | Show truncation warnings (default: true, set to 0 to disable) |
| No | Associations shown per direction in |
| No | Associations embedded in |
| No | Records per relationship group in |
See .env.example for the full list including display limits.
Tools (97 total)
All tools are prefixed with fairsharing_ and support both markdown (default) and json output formats via the output_format parameter.
Search & Discovery (6 tools)
Tool | Description |
| Search records with filters (registry, subjects, domains, countries, etc.) |
| Search records filtered by licence type |
| Count matching records with filters |
| Count records matching FAIR indicator criteria |
| Search with all filters including FAIR indicators |
| Look up a record by DOI or FAIRsharing URL |
Records (8 tools)
Tool | Description |
| Get detailed information about a record |
| Enumerate ALL of a record's associations, paginated, with exact relationship labels |
| Get a record's relationship graph |
| List all record types |
| Find records by creation/update year range |
| Bulk fetch 2-50 records by ID list |
| Reverse-lookup records that reference a given record |
| Resolve a FAIRsharing DOI, URL, or abbreviation to a record ID |
Taxonomy (11 tools)
Tool | Description |
| List scientific subjects (paginated) |
| Search subjects by name |
| Get subject details with hierarchy |
| List technical domains (paginated) |
| Search domains by name |
| Get domain details with hierarchy |
| List species taxonomies (paginated) |
| Search taxonomies by name |
| Browse subject parent/child relationships |
| Analyze records distribution for a subject |
| Analyze records distribution for taxonomies |
Organisations & Countries (6 tools)
Tool | Description |
| List organisations (paginated) |
| Search organisations by name |
| Get records associated with an organisation |
| List countries |
| Analyze records for a country |
| Compare records across regions |
Standards (7 tools)
Tool | Description |
| Find standards used by a database |
| Find databases implementing a standard |
| Analyze adoption metrics for a standard |
| Quality scorecard for a standard |
| Platform-wide Standards Maturity Index |
| Discover emerging/recently-created standards |
| Find policy-endorsed standards lacking implementations |
Quality & FAIR Indicators (7 tools)
Tool | Description |
| Search databases filtered by FAIR indicators |
| Detailed FAIR quality profile for a database |
| Side-by-side quality comparison |
| Rank databases by FAIR score |
| Normalized 0-100 quality score (any record type) |
| Compare quality across mixed record types |
| Domain-specific comprehensive scoring |
Policies (7 tools)
Tool | Description |
| Get policy details with mandates |
| Quality scorecard for a policy |
| Analyze mandates across policies |
| Compare policies between countries |
| Trace standards/databases linked to a policy |
| Find gaps in policy coverage for a subject |
| Detect conflicts between 2-5 policies |
Graph Structure (7 tools)
Tool | Description |
| List available relationship types |
| Get records in a collection |
| Find highly-connected nodes in a record's graph |
| Analyze a record's associations by type |
| Find path between two records in a graph |
| Detect cycles in a record's graph |
| Trace upstream/downstream influence chains |
Graph Analysis (13 tools)
Advanced algorithms operating on a record's local neighborhood graph. Pure Python, no networkx dependency.
Tool | Description |
| Weighted shortest path (Dijkstra) |
| Weighted PageRank influence ranking |
| Label propagation community detection |
| Bipartite projection similarity (Jaccard) |
| Yen's K-shortest paths |
| Brandes' betweenness centrality |
| Tarjan's strongly connected components |
| Path finding across two merged graphs |
| Path finding + betweenness annotation |
| Combined PageRank + communities + centrality |
| Multi-record graph path finding |
| Multi-hop expanded neighborhood analysis |
| Topic-level graph from search results |
Comparison & Compliance (9 tools)
Tool | Description |
| Side-by-side comparison of two records |
| Compare 2-50 records at once |
| Compare record distributions across subjects |
| Compare two collections |
| Check if a database complies with a policy |
| Analyze impact of deprecating a record |
| Find standards satisfying multiple policies |
| Full DMP compliance assessment |
| Multi-hop BFS impact analysis |
Discovery & Utilities (14 tools)
Tool | Description |
| Platform-wide statistics |
| Aggregate records by field (registry, subject, etc.) |
| Search publications linked to records |
| Find records missing relationships |
| Suggest records with rich graphs |
| List registry types |
| List available licences |
| Verify API connectivity and auth |
| Find databases by standard name/ID |
| Find deprecated resources with fallback search |
| Suggest related records |
| Get tool recommendations for a query |
| Get step-by-step workflow for an intent |
| Static reference docs (no API call) |
Curator (2 tools)
Tool | Description |
| Audit a record for missing metadata |
| Batch audit metadata for multiple records |
Usage Examples
Search for genomics databases
Use fairsharing_search_records with subjects=["Genomics"] and registry=["Database"]DMP compliance check
Use fairsharing_assess_dmp_compliance with a policy ID and list of database IDs to check
if your databases meet a funder's data management requirements.Explore a record's ecosystem
1. fairsharing_get_record to get details
2. fairsharing_analyze_record_ecosystem to see relationships
3. fairsharing_compute_pagerank to find influential neighborsCompare policies across countries
Use fairsharing_compare_policies_by_country with countries=["United Kingdom", "United States"]
to compare data sharing mandates.Standards maturity assessment
Use fairsharing_compute_maturity_index to see the platform-wide Standards Maturity Index,
ranking standards by adoption, policy endorsement, and stability.Output Formats
All 97 tools accept output_format parameter:
"markdown"(default) — Human-readable formatted output"json"— Machine-readable structured data, suitable for programmatic chaining between tools
Architecture
server.py -> tools/__init__.py -> tools/*.py -> app.py -> client.py -> FAIRsharing GraphQL APIFastMCP framework with stdio transport
Async GraphQL client with token bucket rate limiting (5 RPS), LRU response cache (500 entries), connection pooling
97 tools across 12 domain modules with MCP annotations (
readOnlyHint,idempotentHint,openWorldHint)Pydantic Field validation on all tool parameters (range constraints, patterns, descriptions)
Pure Python graph algorithms (no networkx) — CPU-bound work offloaded to
asyncio.to_thread()27 GraphQL query constants including
advancedSearchfor server-side FAIR indicator filtering
See CLAUDE.md for detailed architecture documentation.
Development
# Run all tests (332 tests)
python -m pytest tests/test_server.py
# Run specific tests
python -m pytest tests/test_server.py -k "pagerank" -v
# Lint
ruff check src/ tests/
# Format
ruff format src/ tests/Limitations
Local graph scope: Graph analysis tools operate on a single record's local neighborhood, not the full platform graph. Use
fairsharing_explore_expanded_graphorfairsharing_build_topic_graphfor broader analysis.No server-side date filtering: The FAIRsharing API has no date range filter. Date filtering is done client-side by scanning pages (configurable via
FAIRSHARING_MAX_SCAN).Rate limiting: The client rate-limits to 5 requests/second with burst of 3. Large batch operations may take time.
FAIR indicator coverage: Not all records have complete FAIR indicator data. Quality scores include confidence ratings when data is sparse.
License
GNU GENERAL PUBLIC LICENSE
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Live data gateway for AI — 3,300+ tools across 750+ sources, with citations
AgentReady Tools is a searchable catalog of more than 250 APIs, MCP servers and developer tools that AI agents can use, each with agent-readiness checks (docs, auth, OpenAPI, MCP support). Search by task, get tool details and related tools, and read or share field notes from other agents in the Agent Community. Remote MCP endpoint: https://agentready-tools.com/mcp
3 tools that find, describe and run 673 data tools: prices, chain, web, PDF. 10 free calls.
Evidence-first registry of real-world APIs for AI agents, with verified metadata and comparison.
Related MCP Servers
- AlicenseAqualityDmaintenanceExposes CDISC standards data including SDTM, ADaM, CDASH, and Controlled Terminology as tools for AI assistants via the CDISC Library API. It enables users to search standards, retrieve domain variables, and access codelist definitions to facilitate clinical research data management.121MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to explore the OpenAIRE Research Graph and ScholExplorer citation index, discovering citation relationships and retrieving metadata for publications, datasets, and software.21Apache 2.0

ImmPort MCP Serverofficial
AlicenseAqualityCmaintenanceEnables AI assistants to search ImmPort immunology studies and subjects, read study data and assay results, look up controlled vocabularies and the data model, and find study files. Supports study comparison, release history lookups, and guided workflows for cross-study analysis.9MIT- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to verify citations, check retractions, search papers, format bibliographies, run PRISMA 2020 screening, and find open datasets and research software using open databases.MIT