Pattern Generation MCP Server
pattern_gen · Built-in service recipespaCy NER pattern generation as an MCP server. Uses Google Gemini to propose and iteratively refine spaCy matcher patterns given example text and a description of the entity types.
If you've connected Ellf to your coding assistant, it can set up the service for you: it knows the recipe's settings, can create the datasets and assets it needs and will ask you about anything it can't work out itself.
✳︎Claude Code: Setting up a service
› Set up an Ellf service using the Pattern Generation MCP Server recipe (pattern_gen) and help me choose the right settings for my data.- In the app, go to ServicesNew service.
- Select the Pattern Generation MCP Server recipe under MCP.
- Fill in the form – you'll need to provide Gemini API key. Everything else has sensible defaults.
- Create the service. It starts on your cluster straight away.
API key needed
This recipe needs your Gemini API key. Add it as a secret on your cluster and select it in the form.
Create the service with ellf services create and the recipe name. All settings from the form are available as arguments. To view all recipe arguments, run ellf services create pattern_gen --help.
| Argument | Type | Description | Default |
|---|---|---|---|
--name | str | Name of the service | None |
--api-key | str | Gemini API key: Your Google AI API key, stored as an Ellf secret. | |
--model-name | str | Gemini model name: Gemini model used for pattern generation and refinement. Defaults to gemini-2.5-pro. | "gemini-2.5-pro" |
--spacy-model | str | spaCy model name: spaCy model used when applying patterns. Must be downloadable in the recipe container (e.g. en_core_web_sm). | "en_core_web_sm" |
--project-id | str | Project ID to add service to. Defaults to your saved project. | None |
--worker-class | str | Worker class to launch the service on, as configured on your cluster | None |