Skip to content

Deployment: Dockerfile and Smithery config #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
# Base image with Python 3.12
FROM python:3.12-slim-bookworm

# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1

# Set work directory
WORKDIR /app

# Install universal virtualenv (uv)
RUN pip install uv

# Copy the whole project into the Docker image
COPY . /app

# Install dependencies
RUN uv venv && \
.venv/bin/uv pip install -e .

# Expose the necessary port (assuming default port)
EXPOSE 7700

# Entry point to run the server module
ENTRYPOINT [".venv/bin/python", "-m", "src.meilisearch_mcp"]
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Meilisearch MCP Server

[![smithery badge](https://smithery.ai/badge/meilisearch-mcp-server)](https://smithery.ai/server/meilisearch-mcp-server)
A Model Context Protocol (MCP) server for interacting with Meilisearch through LLM interfaces like Claude.

<a href="https://glama.ai/mcp/servers/tbc3n51jja"><img width="380" height="200" src="https://glama.ai/mcp/servers/tbc3n51jja/badge" alt="Meilisearch Server MCP server" /></a>
Expand All @@ -15,6 +16,15 @@ A Model Context Protocol (MCP) server for interacting with Meilisearch through L

## Installation

### Installing via Smithery

To install Meilisearch MCP for Claude Desktop automatically via [Smithery](https://smithery.ai/server/meilisearch-mcp-server):

```bash
npx -y @smithery/cli install meilisearch-mcp-server --client claude
```

### Manual Installation
```bash
# Clone repository
git clone <repository_url>
Expand Down
20 changes: 20 additions & 0 deletions smithery.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml

startCommand:
type: stdio
configSchema:
# JSON Schema defining the configuration options for the MCP.
type: object
properties:
meiliHttpAddr:
type: string
default: http://localhost:7700
description: The HTTP address of the Meilisearch instance.
meiliMasterKey:
type: string
default: null
description: The master key for the Meilisearch instance.
commandFunction:
# A function that produces the CLI command to start the MCP on stdio.
|-
(config) => ({ command: '.venv/bin/python', args: ['-m', 'src.meilisearch_mcp'], env: { MEILI_HTTP_ADDR: config.meiliHttpAddr, MEILI_MASTER_KEY: config.meiliMasterKey || '' } })