MCP Server

by DPoitrast
Integrations
  • Provides deployment target for the MCP server through a minimal Terraform configuration, allowing the container to be deployed as a scalable, serverless compute service.

  • Enables containerization of the MCP server using a provided Dockerfile, making it portable and deployable across different environments.

  • Implements the Model Context Protocol server using FastAPI framework, providing a discoverable, versioned API for exposing herd data.

MCP Proof of Concept

This repository contains a simple Model Context Protocol (MCP) server implemented with FastAPI. The goal is to expose herd data through a discoverable, versioned API that can be deployed to AWS Fargate.

Running locally

  1. Install dependencies:The database path can be configured via the DATABASE_PATH environment variable. If not set it defaults to mcp.db inside the working directory.
    pip install -r requirements.txt
  2. Seed the SQLite database:
    python -m app.seed
  3. Start the API server:
    uvicorn app.main:app --reload
  4. Authenticate with the token fake-super-secret-token when calling the API.

The MCP discovery file is available at model_context.yaml.

Using the agent

An agent package is provided to interact with the MCP server. After the server is running you can list the herd data like so:

python -m agent http://localhost:8000 --token fake-super-secret-token

The agent reads model_context.yaml to discover the API path and returns the JSON response from the server. For full YAML support install the optional PyYAML dependency; otherwise a limited built-in parser is used.

Running tests

pytest -q

Container

A Dockerfile is provided to run the server in a container. Build with:

docker build -t mcp .

Terraform

The terraform directory contains a minimal configuration showing how the container could be deployed to AWS (e.g. Fargate). It creates an ECR repository for the image.

-
security - not tested
F
license - not found
-
quality - not tested

A FastAPI-based Model Context Protocol server that exposes herd data through a discoverable API, with local and containerized deployment options.

  1. Running locally
    1. Using the agent
      1. Running tests
        1. Container
          1. Terraform

            Related MCP Servers

            • -
              security
              F
              license
              -
              quality
              Provides a scalable, containerized infrastructure for deploying and managing Model Context Protocol servers with monitoring, high availability, and secure configurations.
              Last updated -
            • -
              security
              A
              license
              -
              quality
              A high-performance FastAPI server supporting Model Context Protocol (MCP) for seamless integration with Large Language Models, featuring REST, GraphQL, and WebSocket APIs, along with real-time monitoring and vector search capabilities.
              Last updated -
              5
              Python
              MIT License
            • -
              security
              A
              license
              -
              quality
              A Model Context Protocol server implementation that wraps Harvest's REST API, enabling seamless interaction with Harvest's time tracking, client, project, and reporting features through MCP clients.
              Last updated -
              3
              Python
              MIT License
            • -
              security
              A
              license
              -
              quality
              A Model Context Protocol server that exposes over 200+ APIs from API.market as MCP resources, allowing large language models to discover and interact with various APIs through natural language commands.
              Last updated -
              111
              2
              TypeScript
              MIT License
              • Apple

            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/DPoitrast/MCP'

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