Cyb
- javascript
2
GitHub Stars
javascript
Language
6 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"dasein108-cyb-mcp": {
"command": "node",
"args": [
"/path/to/cyb-mcp/dist/index.js"
],
"env": {
"CYBER_GATEWAY": "https://gateway.ipfs.cybernode.ai",
"CYBER_RPC_URL": "https://rpc.bostrom.cybernode.ai",
"CYBER_MNEMONIC": "your twelve word mnemonic phrase here"
}
}
}
}You run a Model Context Protocol (MCP) server that lets AI agents interact with a decentralized knowledge graph, create cyberlinks, and retrieve content from IPFS through the Cyber network. This server enables read and write operations in a controlled, programmable way, leveraging a local Node environment to connect to Cyber’s RPC and IPFS gateway.
How to use
You can operate in two modes. In Read-Only mode you can search the Cyber knowledge graph and retrieve content from IPFS. In Full Mode you gain wallet access to create cyberlinks and sign actions, enabling write operations. To use either mode, run the MCP server locally and connect your MCP client to the local runtime. The available tools are searchQuery, getCyberlink, and, when you provide a mnemonic, sendCyberlink.
How to install
npm install
npm run build
Set the required environment variables before starting the server.
export CYBER_RPC_URL="https://rpc.bostrom.cybernode.ai"
export CYBER_GATEWAY="https://gateway.ipfs.cybernode.ai"
# Optional - only needed for sendCyberlink tool
export CYBER_MNEMONIC="your twelve word mnemonic phrase here"
npm start
Additional configuration and notes
Configure the MCP client to point to the local server runtime. You can run the server directly and connect from your MCP client using the local process.
Security: the mnemonic, if provided, is stored in environment variables. Keep it secure and never commit it to public version control.
Available tools
sendCyberlink
Creates a cyberlink between two pieces of content. Requires a mnemonic to be configured. Takes from, to, and an optional fee parameter.
searchQuery
Searches the Cyber knowledge graph and retrieves content. Can fetch content from IPFS when requested.
getCyberlink
Retrieves content from IPFS by a given CID through the Cyber gateway. Returns text or image content with proper encoding.