MCP Server

by hburgoyne

Integrations

  • Uses .env files for configuration management, allowing customization of server settings through environment variables.

  • Built on the Django framework for web application development, providing the foundation for the MCP server's functionality including user authentication, admin interface, and database interactions.

  • Supports containerized deployment using Docker and Docker Compose, enabling consistent and isolated execution across different environments.

MCP Server

A Django-based implementation of the Model Context Protocol (MCP) for managing political preferences and visions for the future.

Features

  • User authentication with JWT
  • Agent-based architecture
  • Context blocks for storing political preferences and beliefs
  • Fine-grained permission system
  • Vector embeddings for semantic search

Prerequisites

  • Docker and Docker Compose
  • Python 3.9+

Getting Started

  1. Clone the repository:
    git clone <repository-url> cd mcp-server
  2. Copy the example environment file:
    cp .env.example .env
  3. Update the .env file with your configuration.
  4. Build and start the services:
    docker-compose up -d --build
  5. Run database migrations:
    docker-compose exec web python manage.py migrate
  6. Create a superuser:
    docker-compose exec web python manage.py createsuperuser
  7. Access the admin interface at http://localhost:8000/admin/

Project Structure

  • mcp_server/ - Main Django project settings
  • users/ - User authentication and management
  • agents/ - MCP agent definitions
  • memories/ - Context blocks and memory management
  • permissions/ - Fine-grained access control
  • embeddings/ - Vector embeddings and search

API Documentation

API documentation is available at /swagger/ and /redoc/ when running in development mode.

Testing

Run tests with:

docker-compose exec web pytest

License

MIT

-
security - not tested
F
license - not found
-
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.

A Django-based implementation of the Model Context Protocol (MCP) for managing political preferences and visions for the future.

  1. Features
    1. Prerequisites
      1. Getting Started
        1. Project Structure
          1. API Documentation
            1. Testing
              1. License

                Related MCP Servers

                • A
                  security
                  A
                  license
                  A
                  quality
                  Model Context Protocol (MCP) is a new, standardized protocol for managing context between large language models (LLMs) and external systems. In this repository, we provide an installer as well as an MCP Server for Upstash Developer API's.
                  Last updated -
                  16
                  58
                  27
                  TypeScript
                  MIT License
                  • Linux
                  • Apple
                • -
                  security
                  F
                  license
                  -
                  quality
                  A Model Context Protocol service that wraps Django's migration commands as MCP endpoints, making it easy to manage migrations across multiple services and integrate with CI/CD pipelines.
                  Last updated -
                  Python
                  • Linux
                  • Apple
                • -
                  security
                  -
                  license
                  -
                  quality
                  A Model Context Protocol (MCP) server that interacts with system APIs, allowing users to check connections, search employees, register breakfast, and update chemical information by shifts.
                  Last updated -
                  2
                • A
                  security
                  A
                  license
                  A
                  quality
                  Model Context Protocol (MCP) server that provides weather forecast, warnings, water level associated with flood, and earthquake reports from Malaysia Government's Open API.
                  Last updated -
                  4
                  Python
                  MIT License

                View all related MCP servers

                ID: fchlnmt6nz