๐Ÿง  mcp_server-client_EAG-S-4 - Local Setup

๐Ÿง  mcp_server-client_EAG-S-4 - Local Setup

devdastl

Research & Data
Visit Server

README

๐Ÿง  mcp_server-client_EAG-S-4 - Local Setup

This repository provides a minimal implementation to set up and interact with the MCP (Modular Computation Protocol) locally. It consists of a server that exposes various computational tools and a client that communicates with the server to invoke those tools.

The project is managed using uv, a fast Python package manager and workflow tool.


๐Ÿ“‚ Project Structure

  • mcp_server.py โ€” Hosts the MCP server with 28 tools available for interaction.
  • mcp_client.py โ€” The entry point of the project; runs a client that connects to the MCP server and calls its tools.
  • pyproject.toml โ€” Project configuration and dependencies using PEP 621.
  • uv.lock โ€” Auto-generated lockfile for reproducible installations using uv.
  • token.env โ€” Environment file that likely contains secrets or tokens.
  • README.md โ€” Project documentation."""

๐Ÿ› ๏ธ Available Tools on the MCP Server

๐Ÿ”ข Math Tools

  1. add(a, b) โ€” Add two numbers
  2. add_list(l) โ€” Add all numbers in a list
  3. subtract(a, b) โ€” Subtract two numbers
  4. multiply(a, b) โ€” Multiply two numbers
  5. divide(a, b) โ€” Divide two numbers
  6. power(a, b) โ€” Raise a to the power of b
  7. sqrt(a) โ€” Square root
  8. cbrt(a) โ€” Cube root
  9. factorial(a) โ€” Factorial
  10. log(a) โ€” Natural logarithm
  11. remainder(a, b) โ€” Modulus operation
  12. sin(a) โ€” Sine
  13. cos(a) โ€” Cosine
  14. tan(a) โ€” Tangent
  15. mine(a, b) โ€” Special mining tool
  16. int_list_to_exponential_sum(int_list) โ€” Sum of exponentials of integers
  17. fibonacci_numbers(n) โ€” First n Fibonacci numbers

๐Ÿง  String/Image Tools

  1. strings_to_chars_to_int(string) โ€” Convert characters to ASCII
  2. create_thumbnail(image_path) โ€” Generate a thumbnail from an image

๐Ÿ–Œ๏ธ Pinta Automation Tools

  1. open_pinta_application() โ€” Launch and focus Pinta
  2. select_rectangle_tool()
  3. select_text_tool()
  4. select_circle_tool()
  5. draw_rectangle(x1, y1, x2, y2)
  6. write_text_inside_rectangle(text, x1, y1, x2, y2)
  7. draw_circle(x1, y1, radius)
  8. get_lines_of_rectangle(x1, y1, x2, y2) โ€” Return lines from rectangle coordinates
  9. get_midpoint_of_line(x1, y1, x2, y2) โ€” Return midpoint of a line

๐Ÿš€ Getting Started

1. Clone the Repository

git clone https://github.com/your-username/mcp-protocol.git
cd mcp-protocol

2. Install uv (if not already installed)

curl -Ls https://astral.sh/uv/install.sh | sh

Verify installation:

uv --version

3. Set Up the Project Environment

uv venv
source .venv/bin/activate  # or .venv\Scripts\activate on Windows
uv pip install -r pyproject.toml

If requirements.txt doesn't exist:

uv pip freeze > requirements.txt

4. Test MCP Server with GUI client

mcp dev mcp_server.py

5. Run the Client

python mcp_client.py

๐Ÿ“Œ Notes

  • Ensure Pinta is installed if you're using Pinta-related tools.
  • Image tools like create_thumbnail require valid image paths.
  • mcp_client.py is the main entry point to interact with the protocol.

๐Ÿ“„ License

MIT License. Feel free to fork, modify, and contribute.


๐Ÿค Contributing

Pull requests are welcome. For major changes, please open an issue first.

Recommended Servers

Crypto Price & Market Analysis MCP Server

Crypto Price & Market Analysis MCP Server

A Model Context Protocol (MCP) server that provides comprehensive cryptocurrency analysis using the CoinCap API. This server offers real-time price data, market analysis, and historical trends through an easy-to-use interface.

Featured
TypeScript
MCP PubMed Search

MCP PubMed Search

Server to search PubMed (PubMed is a free, online database that allows users to search for biomedical and life sciences literature). I have created on a day MCP came out but was on vacation, I saw someone post similar server in your DB, but figured to post mine.

Featured
Python
dbt Semantic Layer MCP Server

dbt Semantic Layer MCP Server

A server that enables querying the dbt Semantic Layer through natural language conversations with Claude Desktop and other AI assistants, allowing users to discover metrics, create queries, analyze data, and visualize results.

Featured
TypeScript
mixpanel

mixpanel

Connect to your Mixpanel data. Query events, retention, and funnel data from Mixpanel analytics.

Featured
TypeScript
Sequential Thinking MCP Server

Sequential Thinking MCP Server

This server facilitates structured problem-solving by breaking down complex issues into sequential steps, supporting revisions, and enabling multiple solution paths through full MCP integration.

Featured
Python
Nefino MCP Server

Nefino MCP Server

Provides large language models with access to news and information about renewable energy projects in Germany, allowing filtering by location, topic (solar, wind, hydrogen), and date range.

Official
Python
Vectorize

Vectorize

Vectorize MCP server for advanced retrieval, Private Deep Research, Anything-to-Markdown file extraction and text chunking.

Official
JavaScript
Mathematica Documentation MCP server

Mathematica Documentation MCP server

A server that provides access to Mathematica documentation through FastMCP, enabling users to retrieve function documentation and list package symbols from Wolfram Mathematica.

Local
Python
kb-mcp-server

kb-mcp-server

An MCP server aimed to be portable, local, easy and convenient to support semantic/graph based retrieval of txtai "all in one" embeddings database. Any txtai embeddings db in tar.gz form can be loaded

Local
Python
Research MCP Server

Research MCP Server

The server functions as an MCP server to interact with Notion for retrieving and creating survey data, integrating with the Claude Desktop Client for conducting and reviewing surveys.

Local
Python