DEV Community

Cover image for 🧠🥷Docker MCP Toolkit and Dokcer MCP Catalog (How to use MCP secure and easy (Cline and Cursor))🛡️
Web Developer Hyper
Web Developer Hyper

Posted on

🧠🥷Docker MCP Toolkit and Dokcer MCP Catalog (How to use MCP secure and easy (Cline and Cursor))🛡️

Intro

Hello! I'm Ninja Web Developer. Hi-Yah!🥷

I have been studying MCP lately.
However, there were security problems such as Tool Poisoning Attacks when using MCP.↓
https://invariantlabs.ai/blog/mcp-security-notification-tool-poisoning-attacks
I was thinking using Docker is a good way to solve these problem.↓
🧠🥷MCP Security (choose safe MCP and check MCP safety)🛡️
Although, it was difficult to use.

On May 5, Docker announced that they released Docker MCP Toolkit and Docker MCP Catalog (Beta) to support MCP!🎉↓
https://www.docker.com/blog/announcing-docker-mcp-catalog-and-toolkit-beta/
Let's take a look at it right away.💨

What is Docker MCP Toolkit and Docker MCP Catalog?

Explaining in short, you can discover MCP server by using Docker MCP Catalog.
You can simplify installation, manage credentials, enforce access control, and secure runtime environment by using Docker MCP Toolkit.
Also, you can connect Docker Desktop to MCP clients like Gordon (Docker AI Agent), Claude, Cursor, VSCode, Windsurf, continue.dev, and Goose with a one-click.
Furthermore, MCPs run inside Docker container images, and addresses threats to MCP servers like Took Poisoning and Tool Rug Pulls.

How to use Docker MCP Catalog and Docker MCP Toolkit.

This is the official document of Docker MCP Catalog and Docker MCP Toolkit.↓
https://docs.docker.com/ai/mcp-catalog-and-toolkit/
https://docs.docker.com/ai/mcp-catalog-and-toolkit/catalog/
https://docs.docker.com/ai/mcp-catalog-and-toolkit/toolkit/
Here is how to use. It is so easy.
Docker Desktop →Extensions →search "MCP" →install "Docker MCP Toolkit"↓
Image description
→Open →MCP Servers 
→Search for the MCP you want to use.
→Toggle ON the MCP you want to use. (I chose Playwright)↓
Image description
→MCP Clients
→If you want to use Cursor, just push the "Connet" button of Cursor.↓
Image description
If you want to use Cline, set the cline_mcp_setting.json as follows.

{
  "mcpServers": {
    "MCP_DOCKER": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "alpine/socat",
        "STDIO",
        "TCP:host.docker.internal:8811"
      ]
    }
  }
}
Enter fullscreen mode Exit fullscreen mode

→Hooray! Ready to use MCP!🎉

Outro

By using Docker MCP Toolkit and Docker MCP Catalog we can use MCP safer and easier.
On May 10, only 109 MCPs are registered in Docker.
So I hope more MCP will be registered to Docker in the future.

Thinking of learning more about Docker and MCP.
I hope you will learn something from this post.
Thank you for reading.
Happy AI coding!🤖 Hi-Yah!🥷

Top comments (4)

Collapse
 
nevodavid profile image
Nevo David

Insane how fast Docker keeps adding new tools - been meaning to mess with MCP but the security stuff freaked me out before, so this helps a ton.

Collapse
 
webdeveloperhyper profile image
Web Developer Hyper

Thank you for checking my post.
I am also glad for this Docker update.
I will try to keep up with new technologies.

Collapse
 
ramkumar-m-n profile image
Ramkumar M N

Informative, I would really like to give this a try.

Collapse
 
webdeveloperhyper profile image
Web Developer Hyper

Thank you for your comment.😀
I am happy to hear that the post was informative.
I will do my best to get useful information.