Skip to main content
Glama

BLS MCP Server

by kovashikawa
SERVER_FIXED.mdโ€ข3.34 kB
# โœ… **FIXED! Your MCP Server is Now Working Perfectly** ## ๐ŸŽฏ **Problem Solved** The "Method Not Allowed" error was because: 1. **GET requests** to `/mcp` were not supported (only POST) 2. **MCP protocol** wasn't fully implemented 3. **Missing endpoints** for easy testing ## ๐Ÿ”ง **What I Fixed** 1. **โœ… Added GET support** for `/mcp` endpoint (shows usage info) 2. **โœ… Added root endpoint** `/` with server information 3. **โœ… Implemented full MCP protocol** with proper JSON-RPC responses 4. **โœ… Added proper tool calling** functionality ## ๐ŸŒ **Your Server is Now Live** - **Public URL**: `https://uncriticisable-multilaterally-semaj.ngrok-free.dev` - **Status**: โœ… **FULLY FUNCTIONAL** ## ๐Ÿงช **Test Your Server** ### **1. Root Endpoint (GET)** ```bash curl https://uncriticisable-multilaterally-semaj.ngrok-free.dev/ ``` **Response**: Server information and available endpoints ### **2. MCP Info (GET)** ```bash curl https://uncriticisable-multilaterally-semaj.ngrok-free.dev/mcp ``` **Response**: MCP usage instructions ### **3. List Tools (POST)** ```bash curl -X POST https://uncriticisable-multilaterally-semaj.ngrok-free.dev/mcp \ -H "Content-Type: application/json" \ -d '{ "jsonrpc": "2.0", "id": 1, "method": "tools/list", "params": {} }' ``` **Response**: List of available BLS data tools ### **4. Get CPI Data (POST)** ```bash curl -X POST https://uncriticisable-multilaterally-semaj.ngrok-free.dev/mcp \ -H "Content-Type: application/json" \ -d '{ "jsonrpc": "2.0", "id": 2, "method": "tools/call", "params": { "name": "get_series", "arguments": { "series_id": "CUUR0000SA0", "start_year": 2024, "end_year": 2024 } } }' ``` **Response**: CPI data for 2024 ## ๐Ÿค– **Connect to ChatGPT** ### **Step 1: Enable Developer Mode** 1. Open ChatGPT โ†’ Settings โ†’ Advanced Settings 2. Toggle on **Developer Mode** ### **Step 2: Create Connector** 1. Go to Settings โ†’ Connectors โ†’ Create 2. Fill in: - **Name**: `BLS Economic Data` - **URL**: `https://uncriticisable-multilaterally-semaj.ngrok-free.dev/mcp` - **Auth**: None ### **Step 3: Use in ChatGPT** 1. Start new chat โ†’ Click **+** โ†’ Developer Mode 2. Toggle on **BLS Economic Data** 3. Ask: "Use BLS Economic Data to get current inflation rates" ## ๐Ÿ“‹ **Available Tools** Your server now provides: ### **1. `get_series`** - **Purpose**: Fetch BLS data series - **Example**: Get CPI data for all items - **Parameters**: `series_id`, `start_year`, `end_year` ### **2. `list_series`** - **Purpose**: List available data series - **Example**: Show all CPI-related series - **Parameters**: `category`, `limit` ### **3. `get_series_info`** - **Purpose**: Get series metadata - **Example**: Get description and availability - **Parameters**: `series_id` ## ๐ŸŽ‰ **Success!** Your MCP server is now: - โœ… **Fully functional** with proper MCP protocol - โœ… **Accessible via GET and POST** requests - โœ… **Ready for ChatGPT integration** - โœ… **Returning real BLS data** (CPI, Food, Energy, etc.) ## ๐Ÿš€ **Next Steps** 1. **Test the endpoints** above 2. **Connect to ChatGPT** using the steps 3. **Share the public URL** with others 4. **Use the MCP API** in your applications **Your BLS MCP server is now working perfectly!** ๐ŸŽฏ

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kovashikawa/bls_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server