Skip to main content
Glama

MCP Anthropic Server

by mystique920

Servidor antrópico MCP ( mcp-anthropic )

Un servidor MCP (Protocolo de contexto de modelo) que proporciona herramientas para interactuar con las API de ingeniería de indicaciones experimentales de Anthropic.

Características

Proporciona las siguientes herramientas:

  • generate_prompt : genera un mensaje basado en una descripción de la tarea.
  • improve_prompt : mejora un mensaje existente basándose en los comentarios.
  • templatize_prompt : Convierte un ejemplo de mensaje concreto en una plantilla reutilizable.

Configuración

  1. Clonar el repositorio (si corresponde)
  2. Navegue hasta el directorio del proyecto:
    cd mcp-anthropic
  3. Instalar dependencias:
    npm install
  4. Configurar clave API:
    • Cree un archivo .env en la raíz del proyecto ( ./mcp-anthropic/.env ).
    • Agregue su clave API antrópica al archivo .env :
      ANTHROPIC_KEY=your_anthropic_api_key_here
    • Asegúrese de que este archivo no esté comprometido con el control de versiones (debe estar cubierto por .gitignore ).
    • Nota para la integración de LibreChat: para obtener instrucciones específicas sobre cómo configurar y ejecutar este servidor como un proceso secundario dentro de LibreChat (incluido el manejo de claves API), consulte el archivo documentation.md .

Ejecución del servidor

  1. Construya el código TypeScript:
    npm run build
  2. Iniciar el servidor:
    npm start
    El servidor se iniciará y escuchará las conexiones MCP. Debería ver un resultado que indique que el servidor se ha iniciado y qué herramientas están registradas.

Documentación de herramientas

generate_prompt

Genera un mensaje basado en la descripción de una tarea.

Esquema de entrada:

{ "type": "object", "properties": { "task": { "type": "string", "description": "A description of the task the prompt should be designed for (e.g., \"a chef for a meal prep planning service\")." }, "target_model": { "type": "string", "description": "The target Anthropic model identifier (e.g., \"claude-3-opus-20240229\")." } }, "required": ["task", "target_model"] }

improve_prompt

Mejora un mensaje existente basándose en los comentarios.

Esquema de entrada:

{ "type": "object", "properties": { "messages": { "type": "array", "items": { "type": "object", "properties": { "role": { "type": "string", "description": "Role (e.g., 'user', 'assistant')." }, "content": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "Content type (e.g., 'text')." }, "text": { "type": "string", "description": "Text content." } }, "required": ["type", "text"] }, "description": "Content blocks." } }, "required": ["role", "content"] }, "description": "The sequence of messages representing the prompt conversation." }, "system": { "type": "string", "description": "(Optional) A system prompt to guide the model." }, "feedback": { "type": "string", "description": "Specific feedback on how to improve the prompt (e.g., \"Make it more detailed\")." }, "target_model": { "type": "string", "description": "The target Anthropic model identifier (e.g., \"claude-3-opus-20240229\")." } }, "required": ["messages", "feedback", "target_model"] }

templatize_prompt

Convierte un ejemplo de solicitud concreta en una plantilla reutilizable.

Esquema de entrada:

{ "type": "object", "properties": { "messages": { "type": "array", "items": { "type": "object", "properties": { "role": { "type": "string", "description": "Role (e.g., 'user', 'assistant')." }, "content": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "Content type (e.g., 'text')." }, "text": { "type": "string", "description": "Text content." } }, "required": ["type", "text"] }, "description": "Content blocks." } }, "required": ["role", "content"] }, "description": "The sequence of messages representing the prompt conversation example." }, "system": { "type": "string", "description": "(Optional) A system prompt associated with the example." } }, "required": ["messages"] }
-
security - not tested
-
license - not tested
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Un servidor MCP que proporciona herramientas para interactuar con las API de ingeniería de indicaciones de Anthropic, lo que permite a los usuarios generar, mejorar y crear plantillas de indicaciones basadas en descripciones de tareas y comentarios.

  1. Características
    1. Configuración
      1. Ejecución del servidor
        1. Documentación de herramientas
          1. generate_prompt
          2. improve_prompt
          3. templatize_prompt

        Related MCP Servers

        • -
          security
          F
          license
          -
          quality
          This is an MCP server that facilitates building tools for interacting with various APIs and workflows, supporting Python-based development with potential for customizable prompts and user configurations.
          Last updated -
          Python
        • -
          security
          A
          license
          -
          quality
          An enhanced MCP server that grants AI assistants the ability to execute terminal commands on a user's system with improved security controls, designed for use in controlled environments.
          Last updated -
          Python
          MIT License
          • Apple
        • -
          security
          A
          license
          -
          quality
          An MCP server that analyzes codebases and generates contextual prompts, making it easier for AI assistants to understand and work with code repositories.
          Last updated -
          10
          Python
          MIT License
        • -
          security
          F
          license
          -
          quality
          A demonstration server showing MCP implementation in Python with resource handling, tool operations, and reusable prompts for a simple user/post system with local database.
          Last updated -
          Python
          • Apple
          • Linux

        View all related MCP servers

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/mystique920/anthropic-prompt-mcp'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server