OSF CLI Go
The server provides read-only access to the Open Science Framework (OSF) platform. Capabilities include:
osf_whoami: Retrieve the authenticated user's profile (ID, full name, profile URL).
osf_projects_list: List projects owned by the authenticated OSF user.
osf_project_get: Get details of a specific project or component by ID or URL.
osf_components_list: List immediate child components of a project or component.
osf_files_list: Browse OSF Storage files and folders for a project or component, with optional path filtering.
osf_contributors_list: List contributors for a project or component, including permissions and bibliographic status.
Literature search: Search OSF literature metadata with a query and optional limit (1–100).
Preprints: List OSF preprints (with optional provider filter and limit), search preprints by title, and retrieve publication date, DOI, and OSF URL.
DOI resolution: Resolve OSF DOI destinations.
All tools are read-only — no uploads, deletions, or modifications are exposed.
Provides tools for interacting with the Open Science Framework (OSF) API, enabling read-only operations such as listing projects, components, files, contributors, searching, and retrieving project details.
osf-cli-go
A Go command-line client for the Open Science Framework (OSF).
Features
osf auth whoami— Identify the authenticated OSF accountosf auth login— Guided personal-access-token bootstrap for username/password usersosf projects list|get— List and inspect projectsosf components list— List project componentsosf files list|download|upload|mkdir|rm— Browse, download, upload, create folders, and delete OSF Storage filesosf search,osf search --bibtex,osf preprints list|search, andosf resolve— Search/export OSF literature metadata, discover preprints, and resolve OSF DOI destinationsosf registrations create— Create draft registrations for an existing nodeosf export— Export a node snapshot as JSON or a summary tableosf validate— Check OSF node metadata with deterministic research-output or preregistration profilesosf-mcp— Stdio MCP server exposing read-only OSF tools for agent clientsosf completion bash|zsh|fish|powershell— Shell completion scriptsJSON and human-readable output modes
Safe, atomic file downloads with conflict policy (fail/skip/overwrite)
Related MCP server: sourceright
Install
Requirements:
Go 1.26 or newer
go install github.com/edithatogo/osf-cli-go/cmd/osf@latest
go install github.com/edithatogo/osf-cli-go/cmd/osf-mcp@latestOr from a local checkout:
go build -o bin\osf.exe ./cmd/osf
go build -o bin\osf-mcp.exe ./cmd/osf-mcp
.\scripts\build.ps1Authentication
Set OSF_TOKEN in your shell session. Do not commit the token or write it into project files. OSF_USERNAME and OSF_PASSWORD are supported as an opt-in fallback credential source, but personal access tokens remain preferred for automation and for accounts using SSO or two-factor authentication.
$env:OSF_TOKEN = '<your-token>'For guided token setup:
osf auth loginQuick Start
osf --help
osf auth whoami
osf projects list
osf projects get https://osf.io/abc12/
osf components list abc12
osf files list abc12
osf files download --file <file-id> ./output/
osf files download --tree abc12 ./output/
osf files upload --node abc12 ./report.pdf
osf search "open science"
osf search "open science" --bibtex
osf preprints list
osf preprints search "open science" --provider osf
osf resolve 10.1234/example
osf registrations create abc12 --schema <schema-id> --title "Analysis plan"
osf export abc12 --jsonMCP Server
osf-mcp runs a stdio MCP server with read-only tools:
osf_whoami, osf_projects_list, osf_project_get,
osf_components_list, osf_files_list, osf_contributors_list,
osf_search, osf_preprints_list, osf_preprints_search, and
osf_doi_resolve.
The parity discovery tools are bounded and deterministic: osf_search requires
a non-empty query and accepts a limit from 1 to 100, while
osf_preprints_list accepts an optional provider and the same bounded limit.
osf_preprints_search requires a title query, accepts an optional provider, and
returns publication date, published state, DOI, and OSF HTML URL with a limit
from 1 to 100. These tools return structured JSON through the MCP server and
never perform writes.
OSF search results include stable IDs, title, abstract, keywords, year, and URL.
Use osf search <query> --bibtex to emit deterministic BibTeX records for
literature-review workflows. The command does not resolve contributor names or
download PDFs automatically.
For DataLad workflows, OSF CLI Go provides the general-purpose OSF API and
safe file primitives used around a dataset, including osf export and
osf files download --tree. It does not install or configure DataLad, Git
remotes, or git-annex special remotes; those integrations remain a separately
scoped interoperability boundary.
Local development configs are included for GitHub Copilot, VS Code, Claude,
Codex, Gemini CLI, and Qwen Code. Public registry metadata is in server.json
and registry/.
Related MCP Servers
Other maintained servers in the same Glama portfolio:
FYI MCP for freedom-of-information request workflows.
Healthpoint MCP for licensed health-service directory data.
SourceRight for reference and citation verification.
Related OSF ecosystem servers:
OSF connector by pipeworx-io for hosted OSF connectivity.
Paperclip for multi-provider scholarly and OSF Preprints search.
Output Modes
All commands support --output table|json and --json shorthand:
osf projects list --json
osf auth whoami --output jsonProject Status
The CLI is offline-tested for read-only operations, file downloads, WaterButler write primitives, search, preprint listing, draft registration creation, project create/update/delete operations, and node export. All Conductor tracks are reconciled against their per-track plans with closeout review evidence; live OSF validation remains opt-in because it requires credentials and network access.
Documentation
License
Apache 2.0 — see LICENSE.
Citation
If you use this software in your research, please cite it using the metadata in CITATION.cff.
Available Tools
6 toolsosf_components_listA
List immediate child components for an OSF project or component.
Inputs: id (required). Returns: nodes
osf_contributors_listC
List contributors for an OSF project or component.
Inputs: id (required). Returns: contributors
osf_files_listB
List OSF Storage files and folders for a project/component, optionally below a path.
Inputs: id (required), path. Returns: files
osf_project_getB
Get an OSF project or component by id or URL.
Inputs: id (required). Returns: node
osf_projects_listA
List projects owned by the authenticated OSF user.
Returns: nodes
osf_whoamiA
Return the authenticated OSF user profile.
Returns: user
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool targets a distinct resource (components, contributors, files, project, projects list, user profile) with no overlapping purposes, making it easy for an agent to select the correct tool.
All tools share the 'osf_' prefix and use snake_case, generally following a 'noun_list' or 'noun_get' pattern. The exception is 'osf_whoami', which deviates slightly, but overall consistency is high.
With 6 tools, the server is well-scoped for basic OSF query operations. The count is appropriate for the focused read-only functionality offered.
The tool set covers read operations (list, get) for core OSF entities but lacks write, update, or delete actions, leaving obvious gaps for a full lifecycle. Agents can query but not modify data.
Maintenance
Related MCP Connectors
Public read-only MCP for products, frameworks, guides, methodology, and blog metadata.
OAuth-protected, read-only-by-default MCP server for provenance-labeled QuillCaddie project memory.
Read-only MCP tools for AI agent discovery, structured resources, and NIULAI information.
Read-only MCP for AI usage profiles, leaderboards, stats, and docs; no writes or private data.
Related MCP Servers
- FlicenseBqualityBmaintenanceRead-only MCP tools for TROCCO API, enabling workflow and BigQuery datamart audit information retrieval.2-
- AlicenseNot gradedqualityCmaintenancereference and citation validation, verification, enrichment, replacement and improvement1MIT
- FlicenseBqualityDmaintenanceRead-only FastMCP server for Canvas LMS study data.10-
- AlicenseAqualityDmaintenanceRead-only MCP server for licensed Healthpoint HL7 FHIR API access.101Apache 2.0