Dockerfile
Create a Dockerfile
in your repository root that defines how to build your MCP server. Your Dockerfile should be created such that running your Docker image will start your STDIO server.
Here's an example Dockerfile that builds a Node-based MCP server:
Dockerfile
We only support Linux Docker images on major distros (Alpine/Debian-based) and expect sh
to run in your container. Other distros are untested and may not deploy.
For examples, see llms.txt.
You can find more examples of Dockerfiles in Smithery's reference implementations.
smithery.yaml
Create a smithery.yaml
file in your repository root. This file defines the server type, how the MCP server should be started and its configuration options.
smithery.yaml
On this page