This package provides a Model Context Protocol (MCP) server that acts as a shim to the Hypergrid operator, enabling AI assistants to discover and interact with services on the Hypergrid network.
- Self-configuring: Configure the MCP server directly from your AI assistant using the
authorizetool - Service Discovery: Search the Hypergrid registry for available services
- Service Interaction: Call providers on the Hypergrid network
- Secure Authentication: Uses token-based authentication with the Hypergrid operator
Install the package globally via npm:
npm install -g @hyperware-ai/hypergrid-mcpAdd the following to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"hyperware": {
"command": "npx",
"args": ["@hyperware-ai/hypergrid-mcp"]
}
}
}Then restart Claude Desktop.
The MCP server needs to be authorized with your Hypergrid operator credentials. This is done directly through Claude/LM Client:
- Generate credentials in your Hypergrid Operator UI by clicking on the 'Authorize New Client' under a hot wallet
- Copy the authorization command provided by the UI
- Paste it into Claude - it will look something like:
Use the authorize tool with url "http://...", token "...", client_id "...", and node "..." - Claude will call the authorize tool, which saves your configuration permanently
That's it! The MCP server is now configured and will remember your credentials for future sessions.
Once configured, you can use these tools in Claude:
Search for services in the Hypergrid registry.
Example: "Search the registry for weather services"
Call a specific provider with arguments.
Example: "Call the weather provider to get the forecast for New York"
Configure or reconfigure the MCP server with Hypergrid credentials.
Example: "Use the authorize tool with url '...', token '...', client_id '...', and node '...'"
If you prefer manual configuration, you can create a grid-shim-api.json file:
{
"url": "http://localhost:8080/operator:operator:obfusc-grid123.hypr/shim/mcp",
"client_id": "your-client-id",
"token": "your-token",
"node": "your-node.hypr"
}Then run with:
npx @hyperware-ai/hypergrid-mcp -c /path/to/grid-shim-api.jsonThe MCP server looks for configuration in these locations (in order):
- Command line specified file (
-cor--configFileoption) - Current directory:
./grid-shim-api.json - User config directory:
~/.hypergrid/configs/grid-shim-api.json - User home directory:
~/.hypergrid/grid-shim-api.json
When using the authorize tool, configurations are saved to ~/.hypergrid/configs/grid-shim-api.json by default.
- If the MCP server is not working, check Claude's logs for error messages
- Ensure your Hypergrid operator is running and accessible
- Try re-authorizing with fresh credentials from the operator UI
ISC