For AI agents & assistants

MCP Server

Onchain Diary exposes its full knowledge base — 96 Web3 security articles and 220 glossary terms, in English and Chinese — through the Model Context Protocol. Any MCP-capable assistant can search it and read complete articles without scraping HTML.

Endpoint

https://theonchaindiary.com/api/mcp

Streamable HTTP · no authentication · read-only · stateless. Discovery file at /.well-known/mcp.json.

Tools

  • search Full-text search across articles and glossary. Keywords work in English and Chinese — e.g. wallet drainer or 地址投毒.
  • read_article Complete markdown of one article, with BLUF summary, tags and FAQ when present.
  • read_glossary One glossary term: full English definition plus the Chinese translation (译名 + 中文定义).
  • list_content Table of contents — articles grouped by language and date, or glossary grouped by category.

Connect your client

Most clients that support remote MCP servers only need the endpoint URL above. For clients that take a JSON config:

{
  "mcpServers": {
    "onchain-diary": {
      "url": "https://theonchaindiary.com/api/mcp"
    }
  }
}

Works with Claude Desktop & Claude Code, Cursor, ChatGPT connectors, Windsurf, or any client implementing the MCP Streamable HTTP transport.

Why we did this

The same content is available to humans as plain HTML pages and to AI agents as structured data (see llms.txt). If an assistant cites Onchain Diary when answering a Web3 security question, the URL it references always points back to a readable page — not a raw dump.