1. Conduid
  2. Developer Tools
  3. Gliner2 MCP
MCP server · Developer Tools

Gliner2 MCP

GLiNER2 MCP gives your agent three practical superpowers: extract entities, classify meaning, and produce structured JSON from plain language

Unclaimed MIT last commit 6 months ago devtools
56Fair

Scored 5 days ago · breakdown

About Gliner2 MCP

Gliner2 MCP is an MCP server published by mrorigo in the Developer Tools category: gLiNER2 MCP gives your agent three practical superpowers: extract entities, classify meaning, and produce structured JSON from plain language.

The repository has 4 stars and 0 forks, with the last commit 6 months ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/mrorigo/gliner2-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Gliner2 MCP

Powered by Claude · Grounded in docs

I know everything about Gliner2 MCP. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository 5 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v0.2.0v0.2.0
v0.1.0v0.1.0

README

gliner2-mcp

MCP server that exposes GLiNER2 entity extraction, classification, and JSON extraction as tools.

Quickstart

  1. Install dependencies:
uv sync
  1. Run the MCP server:
uv run gliner2-mcp

Environment configuration

This server is configured via environment variables (optionally loaded from .env).

Variable Default Description
GLINER2_MODEL_ID fastino/gliner2-base-v1 GLiNER2 model id or path.
GLINER2_DEVICE empty Device override passed to from_pretrained when supported.
GLINER2_MAX_TEXT_LENGTH 0 Maximum input length. 0 disables the limit.
GLINER2_MCP_LOG_LEVEL INFO Log level for server logging.
GLINER2_MCP_ENV_FILE empty Path to an env file to load before reading the variables above.

If GLINER2_MCP_ENV_FILE is not set, the server will load .env from the working directory when it exists.

MCP tools

  • extract_entities(labels, text=None, filename=None) returns a mapping of label to entity spans.
  • classify_text(schema, text=None, filename=None) returns a mapping of field name to chosen label or list of labels.
  • extract_json(schema, text=None, filename=None) returns a JSON object that matches the provided schema.

For all tools, provide exactly one of text or filename:

  • text: inline input text.
  • filename: UTF-8 text file path relative to the current working directory. Absolute paths and paths resolving outside the current working directory are rejected.

Legacy camelCase aliases are still available for compatibility: extractEntities, classifyText, extractJson.

Available Models

GLiNER2 family models on Hugging Face

Development

uv sync --dev
uv run ruff check .

Testing

Run the default test suite (unit + contract tests):

uv sync --extra dev
uv run --extra dev pytest -q

Run real-model integration tests (downloads/loads actual GLiNER2 weights):

GLINER2_MCP_RUN_INTEGRATION=1 uv run --extra dev pytest -q -m integration

Recommended pre-release check:

uv run --extra dev pytest -q
GLINER2_MCP_RUN_INTEGRATION=1 uv run --extra dev pytest -q -m integration

License

MIT. See LICENSE.

README fetched from the repository 5 days ago. The original is authoritative.

Questions

About Gliner2 MCP

How do I install Gliner2 MCP?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Gliner2 MCP safe to use with an AI agent?

Its trust score is 56 out of 100 (fair). It passes 5 of the 6 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Gliner2 MCP still maintained?

The last commit was 6 months ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.