OSF MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@OSF MCP Serversearch for registrations on cognitive bias"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
OSF MCP Server
An MCP (Model Context Protocol) server for interacting with the Open Science Framework (OSF). Search projects, registrations, preprints, manage files, and more.
Features
Search OSF Content
Projects (public and private with authentication)
Registrations (pre-registered studies)
Preprints (from OSF Preprints and partner services)
File Management
List project files
Download files with PDF-to-Markdown conversion
Read cached file content
Project Management (requires authentication)
Create new projects
Update project metadata
Access wiki content
DOI Resolution
Resolve OSF DOIs to resources
Related MCP server: academic-search-mcp
Installation
# Clone the repository
cd tools/osf-mcp-server
# Create virtual environment
uv venv
source .venv/bin/activate
# Install with dependencies
uv pip install -e ".[test]"Configuration
Environment Variables
Variable | Description | Default |
| Personal Access Token for authenticated access | None (public only) |
| Path for downloaded files |
|
| Maximum search results | 50 |
| API timeout in seconds | 60 |
Getting an OSF Token
Log in to osf.io
Go to Settings → Personal Access Tokens
Create a new token with required scopes
Set
OSF_TOKENenvironment variable
export OSF_TOKEN="your_token_here"Usage
Running the Server
# Run directly
python -m osf_mcp_server
# Or via entry point
osf-mcp-server
# With custom storage path
osf-mcp-server --storage-path /path/to/storageClaude Desktop Integration
Add to your Claude Desktop config (claude_desktop_config.json):
{
"mcpServers": {
"osf": {
"command": "python",
"args": ["-m", "osf_mcp_server"],
"env": {
"OSF_TOKEN": "your_token_here"
}
}
}
}Or with uv:
{
"mcpServers": {
"osf": {
"command": "uv",
"args": [
"--directory", "/path/to/osf-mcp-server",
"run", "osf-mcp-server"
],
"env": {
"OSF_TOKEN": "your_token_here"
}
}
}
}Available Tools
Search Tools
Tool | Description |
| Search for OSF projects by title, tags, category |
| Search for pre-registered studies |
| Search for preprints from OSF and partner services |
Project Tools
Tool | Description |
| Get detailed project information |
| Create a new project (auth required) |
| Update project metadata (auth required) |
File Tools
Tool | Description |
| List files and folders in a project |
| Download and cache a file locally |
| Read content of a downloaded file |
Other Tools
Tool | Description |
| List or get wiki page content |
| Resolve an OSF DOI to a resource |
Examples
Search for Psychology Projects
Search for projects related to "cognitive bias":
- query: "cognitive bias"
- tags: ["psychology"]
- max_results: 20Download a Research Paper
1. Search for preprints: query="machine learning"
2. List project files: project_id="abc12"
3. Download PDF: file_id="xyz789"
4. Read content: file_id="xyz789"Create a New Project
Create project:
- title: "My Research Project"
- description: "A study on..."
- public: false
- tags: ["experiment", "2024"]Development
Running Tests
# Run all tests
python -m pytest
# Run with coverage
python -m pytest --cov=osf_mcp_server
# Run specific test file
python -m pytest tests/test_search.py -vCode Formatting
# Format with black
black src/
# Lint with ruff
ruff check src/Architecture
osf-mcp-server/
├── src/osf_mcp_server/
│ ├── __init__.py # Entry point
│ ├── server.py # MCP server implementation
│ ├── config.py # Configuration settings
│ ├── osf_client.py # OSF API client
│ ├── tools/ # MCP tools
│ │ ├── search_*.py # Search tools
│ │ ├── *_file.py # File tools
│ │ └── ...
│ ├── resources/ # Resource management
│ │ └── osf_manager.py
│ └── prompts/ # Research prompts
│ └── research_prompts.py
└── tests/OSF API Reference
This server uses the OSF API v2. Key endpoints:
/nodes/- Projects and components/registrations/- Pre-registered studies/preprints/- Preprints/files/- File operations/wikis/- Wiki pages
License
MIT License
Contributing
Contributions welcome! Please:
Fork the repository
Create a feature branch
Add tests for new functionality
Submit a pull request
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
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
OSF (Open Science Framework, by the Center for Open Science) MCP.
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
An MCP server for deep research or task groups
An MCP server that provides access to Testiny projects, test cases and test runs
Related MCP Servers
- AlicenseAqualityCmaintenanceA comprehensive MCP server for interacting with Zenodo records, enabling search, retrieval, citation generation, and file downloads.56Apache 2.0
- FlicenseNot gradedqualityCmaintenanceMCP server for academic research using the OpenAlex API, enabling article search, details retrieval, and author profile lookup.-
- AlicenseAqualityAmaintenanceA local MCP server for searching scientific papers, retrieving metadata and abstracts, and legally downloading Open Access PDFs via OpenAlex, CrossRef, and Unpaywall APIs.53MIT
- AlicenseAqualityCmaintenanceAn MCP server for the INSPIRE-HEP API, enabling literature search, author lookups, DOI/arXiv/ORCID resolution, citation export, and bibliography generation with configurable detail levels.9MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/SourceShift/osf-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server