MCP Streamable HTTP Demo
Демонстрация потокового HTTP MCP TP5
Этот проект воссоздает цель демонстрации:
MCP-сервер, предоставляющий два инструмента.
Тестирование с помощью
@modelcontextprotocol/inspector.Агент, совместимый с LangChain/LangGraph, использующий MCP через потоковый HTTP.
Настройка ИИ-агента n8n с использованием MCP через потоковый HTTP.
Важное примечание по безопасности
Ключ OpenAI, вставленный в подсказку, был скомпрометирован в чате. Отозвите его и создайте новый ключ перед запуском агента. Поместите новый ключ в .env; не добавляйте его в репозиторий.
Related MCP server: SampleMCP
Настройка
Copy-Item .env.example .env
npm installОтредактируйте .env и установите:
OPENAI_API_KEY=your_new_keyЗапуск MCP-сервера
npm run serverКонечная точка MCP:
http://127.0.0.1:3000/mcpКонечная точка проверки работоспособности:
http://127.0.0.1:3000/healthТестирование с помощью MCP Inspector
В одном терминале оставьте сервер запущенным:
npm run serverВ другом терминале выведите список инструментов с помощью CLI Inspector:
npm run inspector:list-toolsВ Windows текущий CLI Inspector может вывести правильный JSON-ответ, а затем завершиться с ошибкой утверждения Node/libuv. Если вы видите JSON tools, содержащий calculate и text_stats, значит, сам вызов MCP прошел успешно.
Вызовите инструмент с помощью CLI Inspector:
npx --yes @modelcontextprotocol/inspector --cli http://127.0.0.1:3000/mcp --transport http --method tools/call --tool-name calculate --tool-arg operation=add --tool-arg "numbers=[2,3,4]"Вы также можете открыть пользовательский интерфейс Inspector:
npm run inspectorЗатем выберите:
Transport: Streamable HTTP
URL: http://127.0.0.1:3000/mcpЛокальное дымовое тестирование
npm run smokeЭто выводит список инструментов MCP и вызывает calculate.
Агент LangChain
Убедитесь, что сервер запущен и .env содержит действительный обновленный OPENAI_API_KEY.
npm run agentПользовательская подсказка:
npm run agent -- "Calcule 42 / 6 puis analyse le texte: Bonjour depuis MCP."Агент n8n
Следуйте инструкциям в docs/n8n-agent.md.
Конфигурация инструмента клиента n8n MCP:
Endpoint: http://127.0.0.1:3000/mcp
Server Transport: HTTP Streamable
Authentication: None
Tools to Include: AllThis server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceA Python-based MCP server demonstrating basic math and text tools, supporting both SSE and STDIO transports for integration with AI assistants like Cline in VS Code.Last updated
- Flicense-qualityCmaintenanceA demonstration MCP server that provides math (add/multiply) and weather tools, connecting via stdio and streamable HTTP, and integrates with LangChain and LangGraph for agentic workflows.Last updated
- Flicense-qualityDmaintenanceProvides math and weather tools accessible via LangGraph agent using MCP protocol with stdio and streamable HTTP transports.Last updated1
- Flicense-qualityCmaintenanceA calculator MCP server providing add and subtract tools, along with file resources and a code review prompt, supporting in-memory, HTTP, and STDIO transports. It also includes a LangGraph ReAct agent example that uses the tools.Last updated
Related MCP Connectors
AI Reasoning Cache & Consensus Layer with 11 MCP tools via Streamable HTTP.
MCP server exposing the Backtest360 engine API as tools for AI agents.
Markdown-first MCP server for Notion API with 8 composite tools and 39 actions.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/flamekk/Model-Context-Protocol'
If you have feedback or need assistance with the MCP directory API, please join our Discord server