MCP cover image
See in Github
2025-04-06

Modelo de contexto ProCotol (MCP) Servidor con herramientas para conjuntos de datos de cannabis.

1

Github Watches

0

Github Forks

1

Github Stars

AgentDank:    dank-mcp

dank-mcp is a Model Context Procotol (MCP) server that respond to questions about supported Cannabis Datasets. It is brought to you by AgentDank for educational and legal purposes.

Here's example conversations with Claude Desktop. You are viewing these links on the Claude.ai website; when using this dank-mcp yourself, you must use Claude Desktop to utilize the MCP server. Within the chat, you can expand the Tools call sections to see the SQL requests and CSV results.


Currently the following datasets are supported:

You can find snapshots of these datasets in the AgentDant dank-data repository.

Installation

While we'd like to have pre-built binaries and Homebrew packages, we're having an issue with that right now. So the preferred way to install is using go install or building from source:

$ go install github.com/AgentDank/dank-mcp@latest

It will be installed in your $GOPATH/bin directory, which is often ~/go/bin.

Using with LLMs

To use this dank-mcp MCP server, you must configure your host program to use it. We will illustrate with Claude Desktop. We must find the dank-mcp program on our system; the example below shows where dank-mcp is installed with my go install.

The following configuration JSON (also in the repo as mcp-config.json) sets this up:

{
    "mcpServers": {
      "dank": {
        "command": "~/go/bin/dank-mcp",
        "args": [
          "--root", "~",
        ]
      }
    }
  }

Claude Desktop

Using Claude Desktop, you can follow their configuration tutorial but substitute the configuration above. With that in place, you can ask Claude question and it will use the dank-mcp server.

Here's example conversations with Claude Desktop. Remember you are viewing these links on the Claude.ai website, but you must use Claude Desktop to use the MCP server. You can click into the Tools calls to see the SQL requests and CSV results.

Ollama and mcphost

**I'm currently having issues with this working well, but leaving instructions for those interested. **

For local inferencing, there are MCP hosts that support Ollama. You can use any Ollama LLM that supports "Tools". We experimented with mcphost, authored by the developer of the mcp-go library that peformed the heavy lifting for us.

Here's how to install and run with it with the configuration above, stored in mcp-config.json:

$ go install github.com/mark3labs/mcphost@latest
$ ollama pull llama3.3
$ mcphost -m ollama:llama3.3 --config mcp-config.json
...chat away...

Command Line Usage

Here is the command-line help:

usage: ./bin/dank-mcp [opts]

      --db string         DuckDB data file to use (use :memory: or '' for in-memory) (default "dank-mcp.duckdb")
      --dump              Only download files and populate DB, no MCP server
  -h, --help              Show help
  -l, --log-file string   Log file destination (or MCP_LOG_FILE envvar). Default is stderr
  -j, --log-json          Log in JSON (default is plaintext)
  -n, --no-fetch          Don't fetch any data, only use what is in current DB
      --root string       Set root location of '.dank' dir
      --sse               Use SSE Transport (default is STDIO transport)
      --sse-host string   host:port to listen to SSE connections
  -t, --token string      ct.data.gov App Token
  -v, --verbose           Verbose logging

You can download and dump the data by running dank-mcp --dump. Snapshots of this data are curated at AgentDank's dank-data repository.

$ dank-mcp --dump
time=2025-04-03T18:18:03.177-04:00 level=INFO msg=dank-mcp
time=2025-04-03T18:18:03.185-04:00 level=INFO msg="fetching brands from ct.data.gov"
time=2025-04-03T18:18:24.055-04:00 level=INFO msg="inserting brands into db" count=26499
time=2025-04-03T18:18:52.533-04:00 level=INFO msg=finished

Data Cleaning

Because the upstream datasets are not perfect, we have to "clean" it. Such practices are opinionated, but since this is Open Source, you can inspect how we clean it by examining the code. For example:

  • CT Brands cleaning
  • Extract "trace" values from text measurments

Generally, we simply remove weird characters. We treat detected "trace" amounts as 0 -- and even with that, there's a decision about what field entry actually means "trace".

We also remove rows with riduclous data -- as much as I'd love a 90,385% THC product, I don't think it really exists. In that case, it was an incorrect decimal point (by looking at the label picture), but not every picture validates every error. It's also a pain -- but maybe a multi-modal vision LLM can help with that?

Building

Building is performed with task:

$ task
task: [build] go build -o dank-mcp cmd/dank-mcp/main.go

Notes on Design

This was quick experiment of the surface of MCPs and this data. In the current design, dank-mcp fetches the dataset, cleans it, populates a DuckDB with it; it then presents that DuckDB with a custom MCP server.

This could be broken into different tools. The fetch/clean/download can be stand-alone, and we already publish data to the dank-data repository. There is MotherDuck's generalized mcp-server-motherduck, which can work with any DuckDB file. So that MCP server could slurp the DuckDB file from that repo instead.

I do think one aspect here is that dank-mcp will have a bundle of Prompts and Tools that will be domain-specific?


Contribution and Conduct

Pull requests and issues are welcome. Or fork it. You do you.

Either way, obey our Code of Conduct. Be shady, but don't be a jerk.

Credits and License

Copyright (c) 2025 Neomantra Corp. Authored by Evan Wies for AgentDank.

Released under the MIT License, see LICENSE.txt.


Made with :herb: and :fire: by the team behind AgentDank.

相关推荐

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • Contraband Interactive
  • Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.

  • https://zenepic.net
  • Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.

  • apappascs
  • Descubra la colección más completa y actualizada de servidores MCP en el mercado. Este repositorio sirve como un centro centralizado, que ofrece un extenso catálogo de servidores MCP de código abierto y propietarios, completos con características, enlaces de documentación y colaboradores.

  • ShrimpingIt
  • Manipulación basada en Micrypthon I2C del expansor GPIO de la serie MCP, derivada de AdaFruit_MCP230xx

  • modelcontextprotocol
  • Servidores de protocolo de contexto modelo

  • Mintplex-Labs
  • La aplicación AI de escritorio todo en uno y Docker con trapo incorporado, agentes de IA, creador de agentes sin código, compatibilidad de MCP y más.

  • ravitemer
  • Un poderoso complemento Neovim para administrar servidores MCP (protocolo de contexto del modelo)

  • jae-jae
  • Servidor MCP para obtener contenido de la página web con el navegador sin cabeza de dramaturgo.

  • patruff
  • Puente entre los servidores Ollama y MCP, lo que permite a LLM locales utilizar herramientas de protocolo de contexto del modelo

  • n8n-io
  • Plataforma de automatización de flujo de trabajo de código justo con capacidades de IA nativas. Combine el edificio visual con código personalizado, auto-anfitrión o nube, más de 400 integraciones.

  • WangRongsheng
  • 🧑‍🚀 全世界最好的 llM 资料总结(数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Resumen de los mejores recursos del mundo.

    Reviews

    2 (1)
    Avatar
    user_wxkJ6QPn
    2025-04-17

    I've been using dank-mcp for a while now, and I'm genuinely impressed. Developed by AgentDank, this tool has become an essential part of my workflow. Its intuitive interface and robust features streamline numerous tasks, saving me valuable time. If you're looking for a reliable and efficient application, I highly recommend checking it out. Explore more at https://github.com/AgentDank/dank-mcp.