mderstine/mcp_demo
If you are the rightful owner of mcp_demo and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The FRED MCP demo is a basic server implementation that interfaces with the FRED Python API using fastmcp and polars.
fred_mcp_demo
Basic MCP server wrapping around the FRED Python API using fastmcp and polars.
Setup
This repository uses uv for dependency management.
uv sync
Running the server
Export your FRED_API_KEY
and start the MCP server:
FRED_API_KEY=your_key uv run python server.py
The server exposes an HTTP endpoint on http://localhost:8000
.
Client example
With the server running:
uv run python client.py
The client first uses the search
tool to find the series ID for "GDP" and then retrieves that series with get_series
.
LLM demo
The test_llm.py
script demonstrates connecting an OpenAI model to the MCP server. An OPENAI_API_KEY
is required.
OPENAI_API_KEY=your_openai_key uv run python test_llm.py