This guide will help you set up and use the IPFS Accelerate MCP (Model Context Protocol) servers with VS Code and the web dashboard.
pip install fastapi uvicorn fastmcp psutil numpycd /path/to/ipfs_accelerate_py
python mcp_jsonrpc_server.py --port 8003Then open your browser to: http://localhost:8003
cd /path/to/ipfs_accelerate_py
python vscode_mcp_server.py# Test comprehensive server
python tools/comprehensive_mcp_server.py --help
# Test standalone server
python -m ipfs_accelerate_py.mcp.standalone --helpTo use the MCP server with VS Code:
- Install the MCP extension for VS Code
- Add this configuration to your VS Code settings or MCP config file:
{
"mcpServers": {
"ipfs-accelerate": {
"command": "python",
"args": ["/path/to/ipfs_accelerate_py/vscode_mcp_server.py"],
"cwd": "/path/to/ipfs_accelerate_py"
}
}
}Replace /path/to/ipfs_accelerate_py with the actual path to your repository.
The web dashboard provides a comprehensive interface for testing AI models:
- Text Generation: Test language model text generation
- Text Classification: Classify text into categories
- Text Embeddings: Generate vector embeddings for text
- Audio Processing: Transcribe audio files
- Vision Models: Image classification and generation
- Multimodal: Visual question answering (coming soon)
- Specialized Tools: Code generation and more
- Model Recommendations: Get AI model suggestions
- Model Manager: Search and manage AI models
python mcp_jsonrpc_server.py --help
python mcp_jsonrpc_server.py --port 8003 --verbosepython tools/comprehensive_mcp_server.py --help
python tools/comprehensive_mcp_server.py --transport stdio # For VS Code
python tools/comprehensive_mcp_server.py --transport sse --port 8004 # For HTTPpython -m ipfs_accelerate_py.mcp.standalone --help
python -m ipfs_accelerate_py.mcp.standalone --fastapi --port 8005You can test the JSON-RPC API directly:
curl -X POST http://localhost:8003/jsonrpc \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "list_models", "id": 1}'-
Missing Dependencies: Install all required packages:
pip install fastapi uvicorn fastmcp psutil numpy
-
Port Already in Use: Change the port number:
python mcp_jsonrpc_server.py --port 8004
-
VS Code Connection Issues:
- Make sure the MCP extension is installed
- Check that the path in the configuration is correct
- Try running the server manually first to check for errors
To verify everything is working:
- Start the JSON-RPC server:
python mcp_jsonrpc_server.py --port 8003 - Open http://localhost:8003 in your browser
- Test the "Text Generation" tab with a sample prompt
- You should see a JSON response with generated text
If you encounter issues:
- Check the console/terminal output for error messages
- Verify all dependencies are installed
- Make sure no other services are using the same ports
- Check file paths in configuration files
✅ Working Features:
- JSON-RPC server with web dashboard
- All API endpoints (28 methods available)
- Static file serving
- CLI tools
- VS Code MCP wrapper
- Dashboard UI with multiple model categories
- Some optional dependencies may not be available (DuckDB, IPFS, etc.)
- Models are currently mock/demo responses
- Full model integration requires additional setup
🔧 In Progress:
- Multimodal processing features
- Real model loading and inference
- Advanced hardware acceleration