About Hf Publish MCP
Hf Publish MCP is an MCP server published by CodeStrate in the Files category: a local stdio MCP Server for HuggingFace Model Development Workflows. Includes model uploading, model card editing and inspection of your model repositories. Conduid read 8 tools from its source: get_job_status, inspect_repo, list_model_repos, manage_jobs, trigger_gguf_quant, trigger_model_merge and 2 more. No package is published for it, so it installs from a source checkout.
The repository has 1 stars and 0 forks, and its last commit was on 22 Nov 2026. Conduid has no tagged release on record for it. Its topics include bun, huggingface and modeldeployment.
Install
git clone https://github.com/CodeStrate/hf-publish-mcpTools (8)
get_job_statusPoll any background job (upload or quant) by `jobId`. Shows phase, current file, and elapsed time| Parameter | Type | Description |
|---|---|---|
| jobId * | string | Job ID returned by upload_model or trigger_gguf_quant |
inspect_repoVerify expected files exist (config, tokenizer, weights) and return the model card| Parameter | Type | Description |
|---|---|---|
| repoId * | string | Owner/repo-name, e.g. mistralai/Mistral-7B-v0.1 |
| summaryLength | number | Summary Length (default: 500 chars) |
| summaryOnly | boolean | If true, return only frontmatter YAML data and first n chars of README. |
list_model_reposList your HF models with likes, downloads, and last modified date| Parameter | Type | Description |
|---|---|---|
| limit | number | Max number of repos to return |
manage_jobsList, delete, or batch-clean job history (uploads and quant jobs) across active and archived files| Parameter | Type | Description |
|---|---|---|
| action * | string | Action or operation to perform |
| date | string | ISO Date (YYYY-MM-DD) for cutoff - batch delete after/before |
| jobId | string | Job ID to delete - single operation |
| jobType | string | Filter Jobs by Job Type |
| status | string | Filter Jobs by Status |
trigger_gguf_quantTrigger GGUF quantization via the ggml-org/gguf-my-repo Space. Non-blocking — returns a `jobId`. Requires `HF_GGUF_MY_SPACE_COOKIE` (see Auth). Experimental| Parameter | Type | Description |
|---|---|---|
| isPrivate | boolean | Create the new quantized repo as private. |
| repoId * | string | Owner/repo-name of the model, e.g. google/gemma-4-12B. Must be in full merged safetensors format - raw adapters not supported. |
trigger_model_mergeTrigger an adapter model merge via mergekit (uvx). Uploads the merged model back to Hugging Face.| Parameter | Type | Description |
|---|---|---|
| isPrivate | boolean | |
| mergekitConfig | string | |
| outputRepo * | string | Merge tool output repository name. eg. Qwen3.5-9B-Fable-Distill-merged |
| strategy * | string |
update_model_cardPatch a model card README via surgical section edits, frontmatter merges, or full rewrite (dry run support: review changes before agent commits)| Parameter | Type | Description |
|---|---|---|
| commitMessage | string | Commit message |
| content | string | Full README.md markdown body to commit. frontmatter and removeFields are still applied on top if provided. Use for full card rewrites. Avoid for single-field or minor changes — use frontmatter or sections instead. |
| dryRun | boolean | Update model card without commit |
| frontmatter | object | Frontmatter fields to merge into the existing card. Unspecified keys are preserved. Arrays replace entirely — to add a tag, pass existing tags + new tags. |
| removeFields | array | Frontmatter keys to delete entirely, e.g. ['datasets', 'language']. |
| removeSections | array | Headings of sections to delete entirely, e.g. ['## Old Results']. |
| repoId * | string | Owner/repo-name, e.g. mistralai/Mistral-7B-v0.1 |
| sections | array | Section heading with ## markers, e.g. '## Benchmarks' |
upload_modelUpload a model or adapter directory to HF. Non-blocking — returns a `jobId` immediately. Resumes automatically if interrupted by a server restart; opt-in retry (`maxRetries`) on transient failures| Parameter | Type | Description |
|---|---|---|
| commitMessage | string | Commit message |
| localDir * | string | Absolute path to the model/checkpoint/adapter directory. |
| repoId * | string | Owner/repo-name, e.g. google/gemma-4-12B, created if absent. |
| repoType | string | The type of repository: model (default), dataset, space |
| visibility | string | Repository visibility |
Security checks
6 checks have not been run yet.