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
- Install dependencies:The database path can be configured via the
DATABASE_PATH
environment variable. If not set it defaults tomcp.db
inside the working directory. - Seed the SQLite database:
- Start the API server:
- 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:
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
Container
A Dockerfile
is provided to run the server in a container. Build with:
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.
This server cannot be installed
A FastAPI-based Model Context Protocol server that exposes herd data through a discoverable API, with local and containerized deployment options.
Related MCP Servers
- -securityFlicense-qualityProvides a scalable, containerized infrastructure for deploying and managing Model Context Protocol servers with monitoring, high availability, and secure configurations.Last updated -
- -securityAlicense-qualityA 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 -5PythonMIT License
- -securityAlicense-qualityA 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 -3PythonMIT License
- -securityAlicense-qualityA 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 -1112TypeScriptMIT License