Skip to main content

Easily run, deploy, and connect to MCP servers

Project description

Model Context Protocol Community

Goals:

  • Community driven
  • Implementation details are open-source
  • Running, deploying, and connecting to MCP servers is dead simple
  • Extremely clear documentation on:
    • How to build an MCP server (fill in the official docs' gaps)
    • How to run/deploy an MCP server
    • How to use an MCP client in your application
  • Nice chat UI for using / testing MCP servers

Available Servers

You can find the list of available servers here

Getting Started

First, install the package:

pip install mcp-community

Next, try running the CalculatorMCP server:

from mcp_community import run_mcp
from mcp_community.servers import CalculatorMCP

run_mcp(CalculatorMCP)

By default, this will be running at http://0.0.0.0:8000/sse.

Now, connect to the server and run some calculations in a separate process:

import asyncio

from mcp_community import mcp_client


async def run() -> None:
    """Connect to an MCP server and use the calculator tools."""
    async with mcp_client("http://0.0.0.0:8000/sse") as session:
        # List available tools
        list_tools_result = await session.list_tools()
        print("Available Tools:")
        for tool in list_tools_result.tools:
            print(f"- {tool.name}: {tool.description}")

        # Add two numbers together
        args = {"a": 5, "b": 7}
        added = await session.call_tool("add", arguments=args)
        assert added.content[0].type == "text"
        print(f"Addition Result:  {args['a']} + {args['b']} = {added.content[0].text}")


asyncio.run(run())

Usage

MCP Community provides two methods:

  • run_mcp: runs an MCP server as an SSE application (accepts Server or FastMCP)
  • mcp_client: connects to the SSE endpoint for an MCP server

Hosted Servers

Coming soon...

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_community-0.0.2.tar.gz (35.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_community-0.0.2-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file mcp_community-0.0.2.tar.gz.

File metadata

  • Download URL: mcp_community-0.0.2.tar.gz
  • Upload date:
  • Size: 35.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.6.4

File hashes

Hashes for mcp_community-0.0.2.tar.gz
Algorithm Hash digest
SHA256 22bb15f99fb861d29b38b30417dd07e17c74ed86b8cd01962f151ee1b88130b6
MD5 1890d7887d10075d4d1aa7b5b96b7d7d
BLAKE2b-256 44ce27e96a3b2cd5cd5f194923422a72539dfa242de0dcc8ba60a558c94397c2

See more details on using hashes here.

File details

Details for the file mcp_community-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_community-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f4a1b3197a64d61728080b811d14ba26511c81b386cdd0e916c1480f7e5c0765
MD5 5973275964a8fc7a6316e767190fd8ad
BLAKE2b-256 e55058138e17f9c2027fae0bae43e86a1676c6a970acd185fbcf7964a5901718

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page