Skip to main content
Glama

Document QA MCP Server

by parikshith49
script.js816 B
document.getElementById('askBtn').addEventListener('click', async () => { const query = document.getElementById('queryInput').value.trim(); const answerBox = document.getElementById('answerBox'); if (!query) { answerBox.textContent = 'Please enter a question.'; return; } answerBox.textContent = 'Loading...'; try { const response = await fetch('http://localhost:3000/tools/chat', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ query }) }); const data = await response.json(); answerBox.textContent = data.answer || 'No answer returned.'; } catch (error) { answerBox.textContent = 'Error fetching answer.'; console.error(error); } });

Latest Blog Posts

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/parikshith49/document-qa-mcp12'

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