MCP server implementation in .NET for book management and Ollama integration

MCP server implementation in .NET for book management and Ollama integration

mcpserver-adriano-severino•byadriano-severino

An MCP server built in .NET that exposes tools for managing books through a Livros API and for interacting with Ollama models, accessible through an HTTP API.

License: Not specified•Runtime: Awaiting documentation review•Category: ai agents-models

WHAT IT DOES

  • •Provides book management tools: ObterAsync, ObterPorAutor, CadastrarAsync and AtualizarAsync for retrieving and modifying book data.
  • •Includes Ollama integration tools ListModels and GenerateResponse to list models and generate responses.
  • •Exposes an HTTP interface with endpoints for listing tools, an OpenAPI document, and executing tools via POST.
  • •Offers system utilities VerificarConectividade and ExibirConfiguracao for checking connectivity and showing connection settings.

BEST FOR

  • •Searching and managing a book catalog by title or author through AI-connected tools.
  • •Generating responses with Ollama models in workflows that also need book data operations.
  • •Integrating a tool-executing MCP HTTP endpoint with Open WebUI.

ABOUT MCPSERVER-ADRIANO-SEVERINO

MCP server implementation in .NET for book management and Ollama integration is cataloged as an MCP server attributed to adriano-severino. An MCP server built in .NET that exposes tools for managing books through a Livros API and for interacting with Ollama models, accessible through an HTTP API. It is categorized under ai agents-models. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP server implementation in .NET for book management and Ollama integration are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 6c2fb628ffd5 · 采集于 2026-11-13 11:57:32 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

McpServer

Um servidor de implementação do Model Context Protocol (MCP) para integração com modelos de IA e gerenciamento de livros.

Visão Geral

O McpServer é uma solução completa para integrar modelos de IA do Ollama com uma API de gerenciamento de livros. O projeto implementa o protocolo MCP (Model Context Protocol) e oferece uma interface HTTP para execução de ferramentas via API.

O sistema é composto por três componentes principais:

  • McpServer: Implementação do protocolo MCP em .NET
  • Livros API: API para gerenciamento de dados de livros
  • Ollama: Serviço para execução de modelos de IA

Requisitos do Sistema

  • Docker e Docker Compose
  • .NET 9.0 (para desenvolvimento)
  • Pelo menos 8GB de RAM (recomendado 16GB para modelos de IA maiores)
  • 10GB de espaço em disco

Instalação e Execução

Método 1: Usando Docker Compose (Recomendado)

  1. Clone o repositório:

    git clone https://github.com/Adriano-Severino/McpServer.git
    cd McpServer
    
  2. Execute o sistema usando Docker Compose:

    docker-compose up -d
    
  3. Verifique se todos os serviços estão rodando:

    docker-compose ps
    

Método 2: Executando localmente (para desenvolvimento)

  1. Clone o repositório:

    git clone https://github.com/Adriano-Severino/McpServer.git
    cd McpServer
    
  2. Execute o Ollama localmente ou via Docker:

    docker run -d -p 11434:11434 -v ollama_data:/root/.ollama --name ollama ollama/ollama
    
  3. Execute a API de Livros:

    cd Livros
    dotnet run
    
  4. Configure as variáveis de ambiente para o McpServer:

    set OLLAMA_BASE_URL=http://localhost:11434
    set API_BASE_ADDRESS=http://localhost:5000/api/
    
  5. Execute o McpServer:

    cd McpServer
    dotnet run
    

Uso do Sistema

Uma vez que o sistema esteja em execução, você pode acessar:

Endpoints da API

Integração com Open WebUI

Para integrar com o Open WebUI:

  1. Inicie o Open WebUI (se não estiver usando o docker-compose completo):

    docker run -d -p 3000:8080 -e OLLAMA_BASE_URL=http://localhost:11434 -e MCP_SERVER_URL=http://localhost:5500 ghcr.io/open-webui/open-webui:cuda
    
  2. Acesse o Open WebUI em: http://localhost:3000

  3. Configure a conexão com o MCP Server:

Ferramentas Disponíveis

O MCP Server oferece as seguintes ferramentas:

Gerenciamento de Livros

  • ObterAsync: Buscar livros com filtro opcional por título
  • ObterPorAutor: Buscar livros com filtro por autor
  • CadastrarAsync: Criar/cadastrar um novo livro
  • AtualizarAsync: Atualizar dados de um livro existente

Integração com Ollama

  • ListModels: Lista os modelos disponíveis no Ollama
  • GenerateResponse: Gera uma resposta usando um modelo do Ollama

Utilidades do Sistema

  • VerificarConectividade: Verifica a conectividade entre os componentes
  • ExibirConfiguracao: Exibe as configurações de conexão do MCP Server

Exemplos de Uso

Exemplo 1: Listar Livros

// POST para http://localhost:5500/api/execute
{
  "tool": "ObterAsync",
  "parameters": {
    "titulo": "O Senhor dos Anéis"
  }
}

Exemplo 2: Cadastrar um Livro

// POST para http://localhost:5500/api/execute
{
  "tool": "CadastrarAsync",
  "parameters": {
    "livro": {
      "titulo": "O Hobbit",
      "autor": "J.R.R. Tolkien",
      "anoPublicacao": 1937,
      "genero": "Fantasia"
    }
  }
}

Exemplo 3: Gerar Resposta com Ollama

// POST para http://localhost:5500/api/execute
{
  "tool": "GenerateResponse",
  "parameters": {
    "model": "llama3",
    "prompt": "Escreva um resumo sobre O Senhor dos Anéis"
  }
}

Configuração

Variáveis de Ambiente

Solução de Problemas

Problemas de Conectividade

Se encontrar problemas de conectividade entre os serviços:

  1. Verifique se todos os contêineres estão em execução:

    docker-compose ps
    
  2. Use a ferramenta de verificação de conectividade:

    // POST para http://localhost:5500/api/execute
    {
      "tool": "VerificarConectividade",
      "parameters": {}
    }
    
  3. Verifique os logs dos contêineres:

    docker-compose logs mcpserver
    docker-compose logs livros-api
    docker-compose logs ollama
    

Problemas com Modelos Ollama

Se os modelos não estiverem carregando:

  1. Verifique se o Ollama está em execução
  2. Verifique se o modelo está disponível no Ollama:
    docker exec -it ollama ollama list
    
  3. Baixe um modelo se necessário:
    docker exec -it ollama ollama pull llama3
    

Arquitetura do Sistema

┌─────────────┐     ┌──────────────┐     ┌───────────┐
│  Open WebUI │────►│  MCP Server  │────►│  Ollama   │
└─────────────┘     └──────────────┘     └───────────┘
                           │
                           ▼
                    ┌──────────────┐
                    │  Livros API  │
                    └──────────────┘

Desenvolvimento

Para contribuir com o projeto:

  1. Faça um fork do repositório
  2. Crie uma branch para sua feature (git checkout -b feature/nome-da-feature)
  3. Faça commit das alterações (git commit -am 'Adiciona funcionalidade X')
  4. Faça push para a branch (git push origin feature/nome-da-feature)
  5. Crie um Pull Request

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP server implementation in .NET for book management and Ollama integration from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcpserver-adriano-severino)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related ai agents-models MCP Servers

Alternative and complementary servers in the same category

View all in ai agents-models →
Knowledge Graph Memory
@modelcontextprotocol/server-memory•Model Context Protocol

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

create_entitiescreate_relationsadd_observations+6 more
92K
AI & Multi-Agent
Sequential Thinking
@modelcontextprotocol/server-sequential-thinking•Model Context Protocol

Organize problem solving into revisable, branching thought steps through an MCP tool.

sequential_thinking
92K
AI & Multi-Agent

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.

146
AI & Multi-Agent