
DVMCP relay stats
About
This server provide tools to analyze the activity in the dvmcp.fun relay
Author
npub1xe67lvv3dld92835l8eay4yhjd7d46q43rj7tacyfwcsy9tem2yqq9kqyf
mcpevent_count_by_kindevent_count_by_timerelay_statstop_authors
Capabilities
mcp-1.0
Event ID: 0075332766ef9c8ed455f45710335d8151f2cd4827f8a62366b6de1132d72442

DVMCP relay stats
Installation Options
You can install and run this DVM locally using the @dvmcp/discovery package. Choose one of the following methods:
Option 1: Using Server Flag
Run with the server's naddr:
Command
npx @dvmcp/discovery --server naddr1qvzqqqru7cpzqdn4a7cezm76250rf70n6f2f0ymumt5ptz89uhmsgja3qg2hnk5gqyt8wumn8ghj7un9d3shjtnywekkxupwve6kutcqy3j8vmfdv9hxumm4de3k2mt9de6z6erkd43hqttjv4kxz7fdd4hku6t5daequ3tcu7
JSON Configuration
"mcpServers": { "dvmcp-relay-stats": { "command": "npx", "args": [ "@dvmcp/discovery", "-y", "--server", "naddr1qvzqqqru7cpzqdn4a7cezm76250rf70n6f2f0ymumt5ptz89uhmsgja3qg2hnk5gqyt8wumn8ghj7un9d3shjtnywekkxupwve6kutcqy3j8vmfdv9hxumm4de3k2mt9de6z6erkd43hqttjv4kxz7fdd4hku6t5daequ3tcu7" ] } }
This command uses the naddr which encodes the event kind, public key, and the 'd' tag of the event. It will get the tools just from this server.
Option 2: Using Provider Flag
Run with the provider's nprofile:
Command
npx @dvmcp/discovery --provider nprofile1qyt8wumn8ghj7un9d3shjtnywekkxupwve6kutcqyqm8tma3j9ha54g7xnul85j5j7fhekhgzkywte0hq39mzqs408dgs00jeg3
JSON Configuration
"mcpServers": { "dvmcp-relay-stats": { "command": "npx", "args": [ "@dvmcp/discovery", "-y", "--provider", "nprofile1qyt8wumn8ghj7un9d3shjtnywekkxupwve6kutcqyqm8tma3j9ha54g7xnul85j5j7fhekhgzkywte0hq39mzqs408dgs00jeg3" ] } }
This command uses the nprofile which encodes the public key and relay hints. It will get all tools from this provider.
What Happens Next?
After running one of the commands above:
- The discovery package will fetch the DVM configuration from the Nostr network
- It will start a local server running this DVM
- You can then interact with the DVM through your local instance
Try it out
Form Values
{"name":"event_count_by_kind","parameters":{}}
Form Values
{"name":"event_count_by_time","parameters":{}}
Form Values
{"name":"relay_stats","parameters":{}}
Form Values
{"name":"top_authors","parameters":{}}
{ "created_at": 1746394039, "content": "{\"name\":\"DVMCP relay stats\",\"about\":\"This server provide tools to analyze the activity in the dvmcp.fun relay\",\"picture\":\"https://image.nostr.build/5bf2e2eb3b858bf72c23e53ed1f41ed0f65b2c8a805eaa48dd506b7cfec4ab88.png\",\"website\":\"https://github.com/gzuuus/relay_monitor\",\"tools\":[{\"name\":\"event_count_by_kind\",\"description\":\"Get count of Nostr events grouped by kind with time filter\",\"inputSchema\":{\"type\":\"object\",\"properties\":{\"time_filter\":{\"description\":\"Time filter to apply (last_24_hours, last_week, last_month, all_time)\",\"enum\":[\"last_24_hours\",\"last_week\",\"last_month\",\"all_time\"],\"type\":\"string\"}}},\"annotations\":{\"destructiveHint\":true,\"openWorldHint\":true}},{\"name\":\"event_count_by_time\",\"description\":\"Get event counts aggregated by time periods with optional kind filtering\",\"inputSchema\":{\"type\":\"object\",\"properties\":{\"interval\":{\"description\":\"Time interval for aggregation (hour, day, week, month)\",\"enum\":[\"hour\",\"day\",\"week\",\"month\"],\"type\":\"string\"},\"kind\":{\"description\":\"Optional event kind to filter by\",\"type\":\"number\"},\"limit\":{\"description\":\"Maximum number of time periods to return\",\"type\":\"number\"}},\"required\":[\"interval\"]},\"annotations\":{\"destructiveHint\":true,\"openWorldHint\":true}},{\"name\":\"relay_stats\",\"description\":\"Get statistics about the relay monitoring\",\"inputSchema\":{\"type\":\"object\",\"properties\":{\"time_filter\":{\"description\":\"Time filter to apply (last_24_hours, last_week, last_month, all_time)\",\"enum\":[\"last_24_hours\",\"last_week\",\"last_month\",\"all_time\"],\"type\":\"string\"}}},\"annotations\":{\"destructiveHint\":true,\"openWorldHint\":true}},{\"name\":\"top_authors\",\"description\":\"Get the most active authors (pubkeys) by event count with optional kind filtering\",\"inputSchema\":{\"type\":\"object\",\"properties\":{\"kind\":{\"description\":\"Optional event kind to filter by\",\"type\":\"number\"},\"limit\":{\"description\":\"Maximum number of authors to return\",\"type\":\"number\"},\"time_filter\":{\"description\":\"Time filter to apply (last_24_hours, last_week, last_month, all_time)\",\"enum\":[\"last_24_hours\",\"last_week\",\"last_month\",\"all_time\"],\"type\":\"string\"}}},\"annotations\":{\"destructiveHint\":true,\"openWorldHint\":true}}]}", "tags": [ [ "d", "dvm-announcement-dvmcp-relay-monitor" ], [ "k", "5910" ], [ "capabilities", "mcp-1.0" ], [ "t", "mcp" ], [ "t", "event_count_by_kind" ], [ "t", "event_count_by_time" ], [ "t", "relay_stats" ], [ "t", "top_authors" ] ], "kind": 31990, "pubkey": "3675efb1916fda551e34f9f3d25497937cdae81588e5e5f7044bb1021579da88", "id": "0075332766ef9c8ed455f45710335d8151f2cd4827f8a62366b6de1132d72442", "sig": "3e0fe1086e9a419e36619065cc2818bc87fb075202802a35cd20ceb0ef6cbc73d61feaa54325d30ed87c8ff2d31bd7723c5443ecf29fbe5d267c67b050a2c62f" }