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
Now chat with a bot that can search the web:
mc bot --servers duckduckgo
Pretty cool, right?
Running Community Servers
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.
MCP Client
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
Library Usage
MCP Community provides two methods:
run_mcp: runs an MCP server as an SSE application (acceptsServerorFastMCP)mcp_client: connects to the SSE endpoint for an MCP server
CLI Usage
MCP Community also includes a command-line interface for quickly interacting with MCP servers:
# Install with pip
pip install mcp-community
# Start a chat with a bot that can use a calculator
mc bot
# Start a chat with a bot that can search the web
mc bot --servers calculator
# Start a chat with a bot that can use multiple servers
mc bot --servers calculator,duckduckgo
# See all available options
mc bot --help
The CLI uses Anthropic's Claude to provide a natural language interface to the MCP servers.
We are planning on updating this to be provider-agnostic once Mirascope implements their MCP Client.
Hosted Servers
Coming soon...
Metadata
Release files for mcp-community 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mcp_community-0.0.4.tar.gz | 58.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mcp_community-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 78.2 kB
Release files / mcp_community-0.0.4.tar.gz
| Download URL | mcp_community-0.0.4.tar.gz |
|---|---|
| Size | 58.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6c6ca9f09c92c8dd38187f512170e926c8634e4c7f43b05eb88cddfcec353cb2
|
|
BLAKE2b-256 checksum How to use checksums |
ee9d88a64b05e9dd5f201a91a0bd1f6ef01d921a8144a05e1134a026219c5b69
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.6.4
|
Release files / mcp_community-0.0.4-py3-none-any.whl
| Download URL | mcp_community-0.0.4-py3-none-any.whl |
|---|---|
| Size | 19.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
59378bf3d141c6dc97c3487ef7fa58749dcfa3ffd25e105edcecd0b49bb524a8
|
|
BLAKE2b-256 checksum How to use checksums |
c2e7d796805dc26fde3b9c7a65165c2b007fdd521df6af388fd8235a366c38c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.6.4
|