Team MCP Server
A Model Context Protocol (MCP) server built with FastMCP 2.0+ that provides team information through HTTP streaming transport.
Quick Start
Test it with MCP Inspector:
That's it! Your MCP server is running and you can test it interactively with MCP Inspector.
Overview
This MCP server exposes tools for retrieving team information. It's designed for deployment on servers and includes ngrok integration for easy testing and development.
Prerequisites
- Python 3.10 or higher
- Either
uv
(recommended) orpip
for package management - Node.js and npm (optional, for MCP Inspector)
- ngrok account (optional, for remote testing)
Installation
Option 1: Using uv (Recommended)
Option 2: Using pip
Configuration
- Copy the example environment file:
- Edit
.env
to configure:MCP_HOST
: Server host (default: 0.0.0.0)MCP_PORT
: Server port (default: 8000)MCP_PATH
: MCP endpoint path (default: /mcp)NGROK_AUTH_TOKEN
: Your ngrok auth token (optional)
Running the Server
Local Development
The server will start on http://localhost:8000/mcp
using HTTP streaming transport.
With ngrok Tunnel
For remote testing or exposing your local server to the internet:
This will:
- Start the MCP server locally (unless --tunnel-only is used)
- Create an ngrok tunnel
- Display the public URL you can use to access your server remotely
API Documentation
Endpoint
- URL:
http://localhost:8000/mcp
(or your configured host/port/path) - Transport: HTTP streaming (FastMCP 2.3+)
- Protocol: Model Context Protocol
Available Tools
get_team_name
Returns the name of the team.
Parameters: None
Returns:
Example Usage with MCP Client:
Testing
Using MCP Inspector (Recommended)
MCP Inspector provides a web-based UI to test your MCP server's tools interactively.
- Install MCP Inspector globally:
- Start your MCP server:
- In a new terminal, run the Inspector:
- Open your browser to the URL shown (typically
http://localhost:5173
) - In the Inspector UI, you can:
- View all available tools
- Test the
get_team_name
tool interactively - See request/response details
- Inspect the server's capabilities
Using the Test Client
- Start the server:
- Test with the provided test client:
- Or test with a remote URL using ngrok:
Remote Testing with ngrok
- Start server with ngrok:
- Use the displayed public URL (e.g.,
https://abc123.ngrok.io/mcp
) to connect from any MCP client.
Development
Adding New Tools
To add new tools, edit src/team_server.py
:
Updating Dependencies
When adding new dependencies:
- Add to
pyproject.toml
- Regenerate
requirements.txt
:
- Install:
- uv:
uv sync
- pip:
pip install -r requirements.txt
- uv:
Deployment
For production deployment:
- Set environment variables appropriately
- Use a process manager like systemd or supervisor
- Consider using a reverse proxy (nginx, Apache) for SSL termination
- Ensure firewall rules allow traffic on your configured port
Example systemd service
Troubleshooting
Server won't start
- Check Python version:
python --version
(needs 3.10+) - Verify all dependencies are installed
- Check if port 8000 is already in use
ngrok issues
- Ensure you have an ngrok account and auth token
- Check ngrok status at https://dashboard.ngrok.com
- Verify firewall isn't blocking ngrok
MCP client can't connect
- Verify server is running and accessible
- Check the endpoint URL is correct
- Ensure you're using HTTP streaming transport (not SSE)
License
MIT License - see LICENSE file for details
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Provides team information retrieval capabilities through HTTP streaming transport. Built with FastMCP 2.0+ and includes ngrok integration for easy testing and development.