BitingSnakes/pytorch-mcp
A full-featured MCP server to work with PyTorch and ecosystem libraries
Platform-specific configuration:
{
"mcpServers": {
"pytorch-mcp": {
"command": "npx",
"args": [
"-y",
"pytorch-mcp"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
pytorch-mcp is a full-featured MCP server for PyTorch documentation workflows. It indexes the repository's local docs/ tree and exposes search, page retrieval, symbol lookup, code-example extraction, troubleshooting, and question-answering tools that an LLM can use to help developers work with PyTorch.
docs/ as the source of truth for documentation-aware tools.torch.compile.pyproject.toml and inspects runtime availability.The MCP server is intended to behave like a PyTorch development copilot:
docs/ content as the authoritative source for documentation-aware answers.list_doc_topicssearch_docsget_doc_pageget_symbol_referenceextract_code_examplesanswer_pytorch_questionrecommend_docstroubleshoot_pytorchplan_model_buildassemble_training_stackgenerate_training_loop_templategenerate_task_specific_templategenerate_training_project_templatereview_training_codesuggest_model_architecturechoose_loss_and_optimizeroptimize_data_pipelineLoading reviews...