Skip to main content
Glama
MCP Server Toolkit

MCP Server Toolkit

πŸ”Œ MCP Server Toolkit

The fastest way to connect AI agents to the real world.

Python 3.10+ License: MIT MCP Compatible Stars Forks

A production-ready Model Context Protocol server toolkit that gives your AI agents superpowers.

Quick Start Β· Features Β· Architecture Β· Documentation


🎯 Why MCP Server Toolkit?

Every AI agent needs tools. MCP Server Toolkit gives them file system access, web fetching, database queries, and shell commands β€” all through a single, standardized protocol.

graph LR
    A[πŸ€– AI Agent] -->|MCP Protocol| B[πŸ”Œ MCP Server Toolkit]
    B --> C[πŸ“ File System]
    B --> D[🌐 Web Fetch]
    B --> E[πŸ—„οΈ Database]
    B --> F[πŸ’» Shell]

Related MCP server: MCP Server Toolkit

✨ Features

Tool

Description

Status

πŸ“ File System

Read, write, search, and manage files

βœ… Production Ready

🌐 Web Fetch

Fetch web pages, APIs, and download files

βœ… Production Ready

πŸ—„οΈ Database

Query PostgreSQL, MySQL, SQLite, MongoDB

βœ… Production Ready

πŸ’» Shell

Execute commands with sandboxing

βœ… Production Ready

πŸ” Auth

OAuth2 / API Key / JWT authentication

🚧 Coming Soon

πŸ“Š Metrics

Prometheus-compatible metrics endpoint

🚧 Coming Soon

πŸš€ Quick Start

Installation

pip install mcp-server-toolkit

Run in 30 seconds

from mcp_server import MCPServer, tools

# Create server with default tools
server = MCPServer(
    name="my-agent-tools",
    tools=[tools.FileSystem(), tools.WebFetch(), tools.Database(), tools.Shell()]
)

# Start serving
server.run(port=8080)

Configuration (YAML)

# config.yaml
server:
  name: my-mcp-server
  port: 8080
  auth: none

tools:
  filesystem:
    root: /workspace
    allowed_extensions: [.py, .js, .ts, .md]
  web_fetch:
    timeout: 30
    user_agent: "MCP-Toolkit/1.0"
  database:
    url: postgresql://user:pass@localhost:5432/mydb
  shell:
    allowed_commands: [ls, cat, grep, python]
    sandbox: true
mcp-server --config config.yaml

πŸ—οΈ Architecture

mcp-server-toolkit/
β”œβ”€β”€ mcp_server/
β”‚   β”œβ”€β”€ __init__.py          # Public API
β”‚   β”œβ”€β”€ server.py            # Core MCP server
β”‚   β”œβ”€β”€ protocol.py          # MCP protocol handler
β”‚   └── tools/
β”‚       β”œβ”€β”€ filesystem.py    # File operations
β”‚       β”œβ”€β”€ web_fetch.py     # HTTP client
β”‚       β”œβ”€β”€ database.py      # DB connectors
β”‚       └── shell.py         # Command executor
β”œβ”€β”€ config.yaml.example      # Example config
β”œβ”€β”€ pyproject.toml
└── README.md

πŸ“– Documentation

from mcp_server.tools import FileSystem

fs = FileSystem(root="/workspace")

# Read file
content = await fs.read("src/main.py")

# Write file
await fs.write("output.txt", "Hello, World!")

# Search files
results = await fs.search("**/*.py", pattern="import asyncio")

# List directory
files = await fs.listdir("src/", recursive=True)
from mcp_server.tools import WebFetch

web = WebFetch(timeout=30)

# Fetch page
page = await web.fetch("https://api.github.com/user")

# Download file
await web.download("https://example.com/data.csv", "local.csv")

# Parse HTML
text = await web.extract_text("https://news.ycombinator.com")
from mcp_server.tools import Database

db = Database(url="postgresql://localhost/mydb")

# Query
rows = await db.query("SELECT * FROM users WHERE active = true")

# Insert
await db.insert("users", {"name": "Alice", "role": "admin"})

# Transaction
async with db.transaction() as tx:
    await tx.execute("UPDATE accounts SET balance = balance - 100 WHERE id = 1")
    await tx.execute("UPDATE accounts SET balance = balance + 100 WHERE id = 2")

🀝 Contributing

We love contributions! See CONTRIBUTING.md for guidelines.

git clone https://github.com/fzs356113-oss/mcp-server-toolkit.git
cd mcp-server-toolkit
pip install -e ".[dev]"
pytest

πŸ“„ License

MIT License - see LICENSE for details.


⭐ Star this repo if you find it useful! ⭐

Made with ❀️ by fzs356113-oss

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      A comprehensive Model Context Protocol toolkit that transforms AI assistants into autonomous agents capable of executing real-world tasks across filesystems, web requests, Git workflows, databases, system commands, and AI integrations.
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Provides AI agents with 40 tools for structured data storage, querying, web search, URL fetching, scheduled jobs, and execution through the Model Context Protocol.
      44
      86 npm
      MIT