Skip to main content
Glama
developkariyer

Modular MCP Server

Modular MCP Server

This is a modular, auto-discovering Model Context Protocol (MCP) server built with Python and FastAPI. It's designed to be a scalable foundation for providing tools to Large Language Models (LLMs).

Features

  • Auto-Discovery: Automatically loads tools from the /tools directory on startup.

  • Modular: Tools are self-contained in their own files.

  • Configurable: Uses a .env file for all configuration.

  • Secure: Includes best practices like read-only database users and whitelisting.

  • Performant: Runs on a high-performance Unix socket and uses an async database connection pool.

Related MCP server: MCP Web Tools Server

Setup

  1. Clone the repository:

    git clone <repository_url>
    cd mcp
  2. Create and activate a virtual environment:

    python3 -m venv .venv
    source .venv/bin/activate
  3. Install dependencies:

    pip install -r requirements.txt
  4. Configure your environment:

    cp .env.example .env

    Now, edit the .env file with your actual database credentials and settings.

Running the Server

To run the server on a Unix socket:

uvicorn mcp_server:app --uds /tmp/mcp.sock

Testing

You can test the running server using curl.

Discover tools:

curl --unix-socket /tmp/mcp.sock http://localhost/mcp/v1/tools | jq

Execute a tool:

curl -X POST \
  --unix-socket /tmp/mcp.sock \
  -H "Content-Type: application/json" \
  -d '{"arguments": {"timezone": "Europe/Istanbul"}}' \
  http://localhost/mcp/v1/tools/get_current_time:execute | jq
-
security - not tested
F
license - not found
-
quality - not tested

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

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/developkariyer/mcp'

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