MCP Joke Server with Authentication
@flowsoft-org
About MCP Joke Server with Authentication
Play around with mcp-servers and their mcp-client authentication options
Basic information
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp-authentication-samples": {
"command": "python",
"args": [
"server.py"
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is MCP Joke Server with Authentication?
This is a sample implementation of a Model Context Protocol (MCP) server that serves programming jokes with token-based authentication using FastAPI. It is intended as a demonstration for integration with GitHub Copilot in VS Code.
How to use MCP Joke Server with Authentication?
Open the project folder in VS Code, click “Reopen in Container” to use the devcontainer, then run python server.py. The server starts on http://localhost:8000. Access the SSE endpoint at /sse with a Bearer token: use valid_token for this demo.
Key features of MCP Joke Server with Authentication
- Single MCP tool called
tell_joke - Returns a different programming joke on each invocation
- Token-based authentication for the SSE endpoint
- FastAPI-based HTTP server
- Designed for VS Code Copilot integration
Use cases of MCP Joke Server with Authentication
- Providing a custom joke-telling agent for GitHub Copilot in VS Code
- Demonstrating MCP server setup with authentication
- Learning how to build a simple MCP server with FastAPI
FAQ from MCP Joke Server with Authentication
What does the server do?
It cycles through a collection of programming-related jokes each time the tell_joke tool is called, returning one joke per invocation.
What dependencies or runtime are required?
The server runs inside a VS Code devcontainer that automatically installs dependencies from requirements.txt. Python and FastAPI are the primary requirements.
How is authentication handled?
The server uses a simple Bearer token for the SSE endpoint. A valid token (valid_token) must be included in the HTTP header. Requests without a valid token receive a 401 Unauthorized response.
Are there any known limits?
This is a demonstration implementation; it is not production-ready. For production, you should use proper token validation, secure secrets, HTTPS, and rate limiting.
Where does the joke data live?
Jokes are stored in‑memory as a collection, and the server cycles through them on each call. No external database is used.
More Other MCP servers
XcodeBuildMCP
cameroncookeA Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.
MCP Registry
modelcontextprotocolA community driven registry service for Model Context Protocol (MCP) servers.
Inbox Zero AI MCP
elie222The world's best AI personal assistant for email. Open source app to help you reach inbox zero fast.
Core Philosophy: Connect, Unify, Respond
mindsdbDelegate anything. It comes back done.

EverArt
modelcontextprotocolModel Context Protocol Servers
Comments