Skip to main content
Glama
MaryamSarfraz77

Dictionary Lookup MCP Server

Servidor MCP de Búsqueda en Diccionario

Un servidor Model Context Protocol mínimo, construido con el SDK oficial de Python. Expone una única herramienta, define, que busca la definición de una palabra en inglés usando la API gratuita de dictionaryapi.dev.

Este proyecto se creó como ejercicio de aprendizaje para entender cómo se estructuran los servidores MCP, cómo se comunican con los clientes y cómo se implementan públicamente.

Qué hace

  • Expone una única herramienta: define(word: str) -> str

  • Dada una palabra, devuelve su categoría gramatical y su definición

  • No requiere clave de API ni autenticación

Related MCP server: yifanli-mcp-add-demo

Requisitos

  • Python 3.10+

  • uv (recomendado) o pip

Configuración (local)

# 1. Clone this repo
git clone <your-repo-url>
cd my-mcp-server

# 2. Install dependencies
uv sync

Ejecutarlo localmente

Opción A — Inspector MCP (herramienta de prueba visual, la más sencilla para principiantes):

uv run mcp dev server.py

Esto abre un inspector basado en navegador donde puedes llamar a la herramienta define directamente y ver la solicitud/respuesta sin necesidad de un cliente de IA completo.

Opción B — Conectar con Claude Desktop:

Añade esto a tu archivo de configuración de Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "dictionary-lookup": {
      "command": "uv",
      "args": [
        "--directory",
        "/absolute/path/to/my-mcp-server",
        "run",
        "server.py"
      ]
    }
  }
}

Reinicia Claude Desktop y luego pregunta algo como: "Usa la herramienta de diccionario para definir 'ephemeral'."

Ejemplo de uso

Entrada: define("ephemeral") Salida: ephemeral (adjective): lasting for a very short time.

Despliegue

Este servidor está publicado en Smithery: <link una vez desplegado>

Para desplegar tu propia copia:

  1. Sube este repositorio a GitHub.

  2. Asegúrate de que server.py sea compatible con el transporte streamable-http para el alojamiento remoto.

  3. Alójalo (p. ej., Render/Railway) o usa el flujo de publicación de Smithery.

  4. En Smithery, elige "Publicar vía URL" y apunta a la URL de tu servidor alojado.

Por qué este proyecto

Creado para aprender los fundamentos de MCP: cómo un cliente descubre las herramientas de un servidor, cómo se realiza y se responde una llamada a una herramienta, y cómo un servidor en funcionamiento se comparte públicamente a través de un marketplace como Smithery.

Available Tools

1 tool
defineA

Look up the definition of an English word and return it as text.

ParametersJSON Schema
NameRequiredDescriptionDefault
wordYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

There are no annotations, so the description carries the full behavioral burden. It conveys a read-only lookup behavior by saying 'Look up' and specifies the return type as 'text.' It does not cover edge cases like unknown words or multiple definitions, but these are not critical for a simple dictionary lookup tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, front-loaded sentence that directly states the action, scope, and output. Every word earns its place and there is no unnecessary elaboration or repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter read-only lookup tool with an output schema, the description is substantially complete. It covers the input type ('English word'), the operation, and the return format ('text'). It does not mention failure behavior, but that is a minor gap given the tool's simplicity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema only has a parameter titled 'Word' with zero description coverage. The description compensates by specifying that the word must be an English word, which adds meaningful semantic context beyond the schema. Though format and edge cases are not detailed, the parameter and its expected value are straightforward.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Look up') and a clear resource ('the definition of an English word'), and it states the output form ('return it as text'). There are no sibling tools, so no differentiation is needed. This makes the tool's purpose immediately obvious.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description clearly implies when to use the tool: whenever an agent needs to retrieve the meaning of an English word. It also implicitly excludes non-English words. Because there are no sibling tools or alternatives, explicit when-not-to-use guidance is not necessary.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 1 tool updatev0.1.0
    • First observeddefine

TDQS

A4.4/5.0

Scored across 1 tool

Disambiguation5/5

There is only one tool, so there is no possibility of confusing it with another tool. Its purpose is immediately clear and unambiguous.

Naming Consistency5/5

The single tool name 'define' is a clear imperative verb that matches its action. With only one tool, there are no mixed naming conventions or inconsistencies.

Tool Count3/5

One tool feels thin for a server labeled as a dictionary lookup service, though it does cover the core definition lookup need. It is borderline rather than extreme.

Completeness4/5

The core lookup functionality is covered well, but a dictionary server might reasonably include related operations like synonyms, usage examples, or pronunciation. These are minor gaps rather than fatal omissions.

Maintenance

ActivitySlowing
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    A minimal Model Context Protocol server built with FastAPI that provides a basic "Hello World" resource and tool. Serves as a starting point for building and validating MCP client integrations with richer resources and tools.
    -
  • F
    license
    B
    quality
    Not graded
    maintenance
    A minimal Model Context Protocol server that provides a simple tool for adding two integers. It serves as a demonstration of the official Python MCP SDK and is designed for local execution via stdio.
    1
    -
  • F
    license
    A
    quality
    D
    maintenance
    A minimal starting point for a Model Context Protocol server with stdio transport and one tool, enabling quick setup and custom tool addition.
    1
    -