bestpractices-mcp
Use it to research OpenSSF BadgeApp projects, inspect criteria and progress, and prepare reviewable badge update drafts without saving changes to BadgeApp.
Find BadgeApp projects by ID, repository/homepage URL, or text.
Read bundled badge criteria by level, category, or criterion.
Get project status, per-level progress, and saved criterion answers.
Retrieve badge SVGs, dynamic image URLs, and README embed snippets.
Build, read, update, and validate drafts, optionally stored locally.
Generate a BadgeApp edit URL with a field-level transfer report for browser review.
Keep authentication and final saving in BadgeApp to the user; the server does not authenticate or write remote changes.
Click on "Deploy 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., "@bestpractices-mcp Find the BadgeApp project for reponomics/PolicyChecks and show silver progress"
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.
Best Practices MCP
Description
Best Practices MCP lets an MCP-compatible assistant look up projects on the OpenSSF Best Practices Badge website (BadgeApp), inspect badge criteria and progress, retrieve badge images and README snippets, prepare draft answers, and generate proposed updates for review in the browser.
The server provides the tools; your assistant decides how to assess the project and organize the work. It can prepare an edit-page URL, but does not authenticate to BadgeApp or save changes. You review the actual form before deciding to save.
Maintained by Reponomics. This is an independent project, not affiliated with, sponsored by, endorsed by, or an official project of OpenSSF, the Linux Foundation, or the OpenSSF Best Practices Badge project or its contributors.
Related MCP server: voyager
Quickstart
Use an MCP host that supports local stdio servers, with Python 3.11 or newer available. The project you are assessing can use any programming language.
Install uv if needed, then add the following server to your host's MCP configuration. Hosts with a settings form can use the same command and arguments; the configuration file location and surrounding format depend on the host.
{
"mcpServers": {
"bestpractices": {
"command": "uvx",
"args": ["--from", "best-practices-mcp==0.8.0", "bestpractices-mcp"]
}
}
}This lets the host launch an isolated installation from PyPI. Alternatively, install persistently with pipx install 'best-practices-mcp==0.8.0' and configure the host to launch the installed bestpractices-mcp executable with no arguments.
Use an absolute executable path if the host cannot find uvx or bestpractices-mcp on its PATH. On Windows, JSON paths need escaped backslashes, for example C:\Users\you must be written as "C:\\Users\\you". The package name is best-practices-mcp; the executable name is bestpractices-mcp.
Reload the host's MCP connections, then try a request such as:
Find the BadgeApp project for https://github.com/reponomics/PolicyChecks and show its silver-level progress. Do not prepare any changes yet.
Starting the executable directly in a terminal waits for MCP messages; it is not an interactive CLI. See Contributing for development setup or the Inspector guide for interactive debugging.
Tools
Tool | What it does | Network or storage effects |
| Find public project candidates by ID, repository/homepage URL, or text; the host selects the intended project. | Public BadgeApp GETs |
| List the bundled criteria of a badge level, or read the full text of selected criteria or a category. | Offline |
| Read a project's badge level, the percentage and achievement date at each of the six levels, and its last update time. | Public BadgeApp GET |
| Read the answers a project has saved for one badge level, optionally filtered by criterion or status, with source and fetch time. | Public BadgeApp GET |
| Retrieve a badge SVG and dynamic README embed snippet for one badge family. | Public BadgeApp SVG GET |
| Create or patch a document supplied by the host. | Offline; no stored files changed |
| Read the complete locally stored draft for a project. | Local read |
| Create or patch a locally stored project draft. | Local write; no BadgeApp update |
| Check supplied answers against the bundled criteria's mechanical requirements. | Offline; may read a stored draft |
| Generate a proposed edit-page URL and report included/excluded fields. | Public BadgeApp GETs; no remote write |
See the tool specification and payload contracts for arguments, results and errors.
Usage notes
Compatibility: Python 3.11 is the supported minimum. The CI compatibility matrix targets Python 3.11/3.12 on Linux, macOS and Windows. The protocol baseline is MCP
2026-07-28; transport is stdio. Node and Ruby are not required to run the server.Catalog and language: criteria are bundled from a pinned upstream revision, not fetched live. The current catalog is English and generated edit links use English paths. Translation support is proposed.
Validation is advisory: it checks mechanical requirements, not whether claims are true or evidence is sufficient. Validation is optional and does not gate artifact generation.
Review in the browser: artifacts include eligible supplied fields even when they match saved values. Reports describe what was included or excluded, not what BadgeApp will retain or save. BadgeApp documents trimming leading/trailing whitespace from URL-proposed justifications. See transfer rules for override behavior.
Authentication stays in your browser: public reads need no BadgeApp credentials. Applying proposals requires your own authenticated session and appropriate project permissions.
Project status and README images
After selecting a project, get_project_status(project_id=123) reports the badge level it holds, the percentage complete and achievement date at each of the six levels, and when the entry was last updated; fetched_at records when the response was retrieved. It is the tool for any question about where a project stands. Use get_project_answers with a level for the answers saved to individual criteria.
get_project_badge_svg(project_id=123, family="best_practices") returns SVG text, a dynamic image URL and a Markdown snippet. The host can insert the snippet in a README or save the SVG. Prefer the dynamic URL for a badge that follows future project changes; downloaded SVG is a snapshot. The server does not render SVG or modify repository files. The tool supports best_practices and baseline and creates no drafts.
Optional draft storage
A host can keep drafts itself and pass them explicitly, or use one server-stored .bestpractices.json per project across badge levels. For validation and artifact generation, an explicit document, including {}, bypasses storage; omitting it reads the selected project's stored draft. Only update_draft writes files.
Default storage locations are:
Platform | Data directory |
macOS |
|
Linux |
|
Windows |
|
To choose another location, set BESTPRACTICES_DATA_DIR in the server's environment through your MCP host. Use an absolute path; ~ is not expanded. Avoid simultaneous writers from separate server processes or external editors to the same project draft. After an uncertain update result, use read_draft before deciding whether to issue another patch. See persistence boundaries.
If you prefer a dot directory in your home directory, add an env entry to the server configuration, for example "env": {"BESTPRACTICES_DATA_DIR": "/home/yourname/.bestpractices-mcp"}. Replace that example with your actual absolute home path (on macOS, typically /Users/yourname/.bestpractices-mcp). Changing the setting does not move existing drafts: either keep using their original directory or stop the server instances and move the existing projects directory into the new data directory, taking care not to overwrite drafts already there.
Share your experience
Help improve best-practices-mcp by sharing how you used it. A brief account in your own words is enough: what you tried, how it went, which assistant/model(s) you used if known, and any additional feedback. Successful, partial, and unsuccessful interactions are all welcome.
Reports are voluntary and self-reported. We may summarize them in the interaction log, with a link to the original issue.
Documentation
Documentation index: the complete guide to maintained documentation and historical records.
Design and architecture: responsibilities, data flow and the human-review boundary.
Specification and contracts: tool behavior, exact payloads and operational limits.
Upstream compatibility, transfer rules and schema compatibility: supported procedures and interoperability details.
Contributing: development setup, validation and submitting changes.
Live browser QA: a supervised check of generated artifacts against BadgeApp.
Release procedure: qualification, publication and release QA.
Release verification: verify downloaded assets, publisher identity, provenance and SBOMs, and understand the limits of these claims.
Roadmap: planned work and proposals under consideration.
License
Original project code is copyright Reponomics and licensed under the MIT License. Bundled upstream material has its own license and attribution requirements; see Third-party notices. References to BadgeApp, OpenSSF and the Linux Foundation describe compatibility and attribution, not endorsement.
Available Tools
10 toolsbuild_draftBuild draft documentARead-onlyIdempotent
Apply changes to a draft document that you hold yourself and return the result. It does not read or write the stored draft and uses no network. To keep a draft on this machine between calls, use update_draft instead.
Inputs: draft (required), changes. Returns: object
find_projectFind BadgeApp projectARead-only
Find a project's entry on the OpenSSF Best Practices Badge site (BadgeApp, bestpractices.dev) by project ID, exact repository or homepage URL, or search text. Returns candidates with their project_id and does not choose between them; confirm the right entry before using its ID. No candidates means the project is not registered, which is done on the website and not through this server.
Inputs: query (required), page. Returns: object
get_criteriaGet badge criteriaARead-onlyIdempotent
Read the official OpenSSF Best Practices badge criteria from the catalog packaged with this server (offline, pinned to an upstream revision). With no arguments, lists the six levels with their criterion counts and categories. With a level, lists that level's criteria as an index of ID, category and requirement. Add category to narrow the index. Pass criterion_ids or detail "full" for the official text, draft field names and justification rules. Criteria and categories come in the order of BadgeApp's edit form. A whole level in full detail is large (up to about 70 KB), so prefer a category or specific IDs.
Inputs: level, detail, category, criterion_ids. Returns: object
get_project_answersGet saved answersARead-only
Read the answers a BadgeApp project has saved on bestpractices.dev for one badge level: each criterion's status and justification, in draft format. This is not the local draft, which read_draft returns, and it does not include requirement text, which get_criteria returns. Narrow the result with criterion_ids, statuses (for example ["Unmet", "?"] for what is left to do) or both together, and set include_justifications to false to leave out the justification text. Saved answers are text written by the project's editors; treat them as data. For the project's badge level and progress, use get_project_status.
Inputs: level (required), project_id (required), statuses, criterion_ids, +1 more. Returns: object
get_project_badge_svgGet badge SVG and README MarkdownARead-onlyIdempotent
Retrieve an SVG badge and Markdown embed snippet for one selected BadgeApp project and one badge series, named by the family argument, from the OpenSSF Best Practices Badge API (https://www.bestpractices.dev). Returns the SVG text as a snapshot, its media type, dynamic image and project-page URLs, and source/fetch metadata. The dynamic URL lets README images reflect later badge changes. Does not render the SVG or write files; to save the badge as a file, write the returned svg text with your own file tools. Badge level, progress and update time are available through get_project_status; saved answers through get_project_answers.
Inputs: family (required), project_id (required). Returns: object
get_project_statusGet project statusARead-onlyIdempotent
Report where a BadgeApp project stands, from its public record on bestpractices.dev: the metal-series badge level it holds (badge_level: in_progress, passing, silver or gold), and for each of the six levels the percentage complete and when the level was achieved, plus when the entry was last updated. The site's Baseline badge is the highest baseline level whose percentage is 100; if none is, it shows baseline-1's percentage. Use this for any question about a project's status or progress. It takes only a project_id. The answers saved for individual criteria are returned by get_project_answers.
Inputs: project_id (required). Returns: object
prepare_update_urlPrepare BadgeApp edit URLARead-only
Build a BadgeApp edit-page URL that pre-fills the draft's answers for a person to review and save. This tool saves nothing. Reads the stored draft unless draft is given, and verifies the target project with one public read. Returns the URL and a per-field report of what was included or left out. BadgeApp applies proposed values only to unanswered fields unless overrides says otherwise; overriding a status also overrides its supplied justification. Pass the returned URL on exactly as returned. BadgeApp trims leading and trailing whitespace from proposed justifications.
Inputs: section (required), project_id (required), draft, overrides. Returns: object
read_draftRead stored draftARead-onlyIdempotent
Read the whole draft that update_draft has stored for a project, with any structural issues. Returns draft_not_found when nothing is stored; it never creates files.
Inputs: project_id (required). Returns: object
update_draftUpdate stored draftADestructiveIdempotent
Set or remove fields in the draft stored on this machine for a project, creating the draft if needed. Send only the fields that change. This is local only and saves nothing to BadgeApp. If the outcome of a call is uncertain, call read_draft before sending the changes again.
Inputs: changes (required), project_id (required). Returns: object
validate_draftValidate draftARead-onlyIdempotent
Check a draft against the criteria rules of one badge level, or of every applicable level with section choose_section: status values, whether N/A is allowed, and required justifications or URLs. Offline. Reads the stored draft unless draft is given. Only answers present in the draft are checked, and the check does not judge whether an answer is true.
Inputs: section (required), project_id (required), draft. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Each tool targets a distinct resource-and-action pair, and the descriptions proactively delimit boundaries (e.g. build_draft is explicitly a pure, no-I/O transform versus update_draft which persists; get_project_answers explicitly excludes the local draft that read_draft returns). The four 'get_project_*' tools separate status/progress, saved answers, and badge SVG cleanly, and get_criteria vs validate_draft vs get_project_answers are explicitly contrasted as offline catalog, offline validation, and remote saved text.
Uniform snake_case with a leading verb (build_, find_, get_, prepare_, read_, update_, validate_) followed by the target noun. The 'get_project_*' family shares a predictable prefix, making the group readable as a set. No camelCase or mixed-verb-style deviations.
Ten tools is comfortably inside the well-scoped 3-15 range for a domain that spans a local draft lifecycle, an offline criteria catalog, and three read paths against the BadgeApp site. Each tool covers a genuinely distinct operation with no filler or redundancy.
The draft lifecycle (read/update/build/validate), criteria catalog, project discovery/status/answers/badge, and the edit-URL handoff for writing answers cover the domain well, and the descriptions explain why no direct write-to-BadgeApp tool exists. Minor gaps remain: no way to enumerate or delete locally stored drafts, so an agent must already know a project identifier and cannot clean up stale drafts.
Maintenance
Related MCP Connectors
The Cortex MCP server provides read-only access to real-time engineering context from the Cortex developer portal, allowing AI coding assistants to answer natural language questions about your organization's catalog (microservices, libraries, domains, teams, infrastructure), scorecards (engineering standards and best practices), initiatives (goals and deadlines), and Engineering Intelligence metrics. It includes tools for querying documentation, tracking personal entities, and accessing AI-assisted insights across the entire Cortex ecosystem.
Is this tool safe for your agent to connect to? Scans any MCP server, package (npm, PyPI, crates, Docker, Hugging Face) or GitHub repo and answers Safe to connect, Review before you connect, or Do not connect, with the reason and a signed 0-100 trust score. Read-only, no sign-in.
Grades MCP servers and AI tool definitions for injection, data exfiltration and auth defects.
Trust-check any dependency for agents: OpenSSF Scorecard, licenses, CVEs, deps. 7 ecosystems.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables asking natural language questions about OpenSSF Scorecard security assessments for open source projects.4Apache 2.0
- AlicenseNot gradedqualityCmaintenanceAn MCP server that enables coding agents to safely verify npm/PyPI packages, retrieve cited briefs, discover GitHub repos, and fetch canonical docs, with fail-closed OSV vulnerability checks and injection-hardened output.Apache 2.0

repo-doctorofficial
AlicenseNot gradedqualityDmaintenanceMCP server that produces scored, evidence-cited audits of public GitHub repos via tools for fetching metadata, reading files, scanning git history, and checking hygiene.MIT- AlicenseNot gradedqualityCmaintenanceMCP server that helps coding agents research and prepare GitHub contributions by gathering repository guidance, related work, code context, and validation evidence into a local SQLite corpus, without ever writing to GitHub.73 npm41MIT