Biblioteca Digital

Ejemplo básico para creación de MCP Server usando Python
  • python

0

GitHub Stars

python

Language

7 months ago

First Indexed

3 months ago

Catalog Refreshed

Documentation & install

Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.

Installation

Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "nadadi-basic-mcp": {
      "command": "mcp",
      "args": [
        "dev",
        "server.py"
      ]
    }
  }
}

You run an MCP server that provides an interactive digital library with fast search, book addition, detailed book information, and professional prompts to generate literary reviews. This setup lets you manage a growing collection in memory and expose easy-to-use tools for clients to explore and critique literature.

How to use

Connect to the MCP server with a compatible MCP client. You can search for books by title or author, add new titles to the library, fetch full details for any book, and generate professional prompts to create literary reviews. Use the provided tools to perform common tasks without writing custom code.

How to install

Prerequisites include Python 3.12 or newer, the uv tool for fast Python package management, and a modern operating system (macOS, Linux, or Windows). You will also need internet access to install dependencies.

# 1. Install uv (macOS)
brew install uv

# 2. Configure your project
# Clone or download the project into a folder named basic-mcp
cd basic-mcp

# Initialize uv for the project if needed
uv init

# Create and activate a virtual environment
uv venv

# Install MCP CLI tools
uv pip install "mcp[cli]"

Additional notes

Run the server in development mode using the MCP command. The server is designed to run a Python script with the dev mode of the MCP tool.

mcp dev server.py

Available tools

buscar_libro

Search books by title or author and return matching results.

agregar_libro

Add a new book with title, author, year, and genre to the library.

generar_reseña

Generate a professional prompt to create literary reviews, including analysis of style, themes, historical context, and critical evaluation.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational