Skip to main content
Glama

MCP Local Server

by Diegoval-Dev

MCP Local Server

Minimal Model Context Protocol (MCP) server written in Python.

Features

  • Implements JSON-RPC stdio transport.
  • Tools:
    • sum: safely sum a list of numbers.
    • grep_lines: filter lines containing a substring.
    • sha256: compute SHA-256 hash of text.
    • json_validate: validate data against a JSON Schema.

Usage

Run locally

python main.py

Test with jq or PowerShell

echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"Test","version":"0.1"}}}' | python main.py

Example tool call

echo '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"sum","arguments":{"values":[1,2,3.5]}}}' | python main.py

Logging

Setea MCP_LOG_FILE para escribir JSONL además de stderr:

$env:MCP_LOG_FILE="D:\ruta\log.jsonl" python .\main.py
-
security - not tested
F
license - not found
-
quality - not tested

local-only server

The server can only run on the client's local machine because it depends on local resources.

A minimal Model Context Protocol server that provides basic utility tools including mathematical operations, text processing, hashing, and JSON validation. Implements JSON-RPC stdio transport for local testing and development.

  1. Features
    1. Usage
      1. Run locally
      2. Test with jq or PowerShell
      3. Example tool call
      4. Logging

    Related MCP Servers

    • -
      security
      A
      license
      -
      quality
      A simple implementation of a Model Context Protocol server that demonstrates core functionality including mathematical tools (add, subtract) and personalized greeting resources.
      Last updated -
      62
      Python
      GPL 3.0
    • A
      security
      F
      license
      A
      quality
      A simple Model Context Protocol server that provides standardized tool functionality, currently implementing a basic calculator for adding two numbers together.
      Last updated -
      2
      593
      JavaScript
    • -
      security
      F
      license
      -
      quality
      A minimal example server implementing the Model Context Protocol, providing addition and multiplication tools for learning and experimentation with MCP clients.
      Last updated -
      Python
    • A
      security
      A
      license
      A
      quality
      A comprehensive Model Context Protocol server providing access to 70+ IT tools for developers and system administrators, including encoding/decoding, text manipulation, hashing, and network utilities.
      Last updated -
      76
      839
      8
      TypeScript
      MIT License
      • Linux

    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/Diegoval-Dev/mcp-server'

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