Discover DVMCP for decentralized AI tool discovery and integration via Nostr's Data Vending Machine ecosystem
DVMCP (Data Vending Machine Context Protocol) is a monorepo containing packages that facilitate the integration of Model Context Protocol (MCP) servers into Nostr's decentralized network. By leveraging DVMCP, AI applications such as Claude Desktop, Continue, and Cursor can discover, execute, and utilize tools through MCP servers, enhancing their functionality within the Nostr ecosystem.
DVMCP primarily consists of three key components:
DVMCP implements the Model Context Protocol (MCP) to enable seamless communication between AI applications and external tools through Nostr's decentralized network. The protocol flow is designed to ensure efficient data transfer and execution, as illustrated by the following Mermaid diagram:
graph TD
A[AI Application] -->|MCP Client| B[MCP Protocol]
B --> C[MCP Server]
C --> D[Data Source/Tool]
style A fill:#e1f5fe
style C fill:#f3e5f5
style D fill:#e8f5e8
To ensure broad compatibility, DVMCP supports integration with several AI applications:
MCP Client | Resources | Tools | Prompts |
---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ |
Continue | ✅ | ✅ | ✅ |
Cursor | ❌ | ✅ | ❌ |
To run the DVMCP packages without installing them, use npx
:
# Run the bridge
npx @dvmcp/bridge
# Run the discovery service
npx @dvmcp/discovery
Follow the interactive CLI setup to configure your MCP servers and Nostr credentials.
For those desiring a more straightforward command-line experience, you can install DVMCP globally:
# Install packages globally
npm install -g @dvmcp/bridge @dvmcp/discovery
# Run commands directly
dvmcp-bridge
dvmcp-discovery
In a financial analytics platform, DVMCP allows an AI application to request real-time stock data from various APIs. The bridge component connects the MCP server with Nostr, ensuring that the AI application can fetch and process this data efficiently.
// Example configuration for fetching real-time stock data
{
"mcpServers": {
"stockDataAPI": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-stockdataapi"],
"env": {
"API_KEY": "your-api-key"
}
}
},
"tools": [
{
"type": "fetcher",
"name": "Real-Time Stock Data",
"commands": ["stockDataAPI:getLatestPrices"]
}
]
}
In a project management tool, DVMCP can integrate custom tools created by third-party developers. The discovery service ensures that these tools are discoverable and can be seamlessly integrated into the AI application's workflow.
DVMCP supports integration with several MCP clients:
{
"mcpServers": {
"[server-name]": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-[name]"],
"env": {
"API_KEY": "your-api-key"
}
}
},
"tools": [
{
"type": "fetcher",
"name": "External Data Fetcher",
"commands": ["serverName:getData"]
},
{
"type": "executor",
"name": "Custom Tool Executor",
"commands": ["serverName:executeTool"]
}
]
}
DVMCP is designed to be highly compatible with various AI applications and tools. The following matrix provides an overview of the current compatibility matrix:
MCP Client | Resources | Tools | Prompts |
---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ |
Continue | ✅ | ✅ | ✅ |
Cursor | ❌ | ✅ | ❌ |
For developers looking to fine-tune their MCP server configurations, DVMCP offers advanced options:
API_KEY
and NOSTR_PRIVATE_KEY
for secure communication.{
"env": {
"API_KEY": "your-api-key",
"NOSTR Private Key": "private-key-here"
}
}
Contributions to DVMCP are welcome! Follow these steps to get started:
git clone https://github.com/gzuuus/dvmcp.git
bun install
bun run dev --cwd packages/dvmcp-bridge
bun run dev --cwd packages/dvmcp-discovery
Explore the broader MCP ecosystem, including related projects and resources:
By leveraging DVMCP, developers can create robust AI applications that seamlessly integrate with external tools through MCP servers, enhancing functionality and interoperability within the Nostr ecosystem.
RuinedFooocus is a local AI image generator and chatbot image server for seamless creative control
Simplify MySQL queries with Java-based MysqlMcpServer for easy standard input-output communication
Build stunning one-page websites track engagement create QR codes monetize content easily with Acalytica
Learn to set up MCP Airflow Database server for efficient database interactions and querying airflow data
Explore CoRT MCP server for advanced self-arguing AI with multi-LLM inference and enhanced evaluation methods
Access NASA APIs for space data, images, asteroids, weather, and exoplanets via MCP integration