{"_id":"mcp-server-fetch-typescript","_rev":"2-2891d3e7e48479a94266d4d726934dc8","name":"mcp-server-fetch-typescript","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"mcp-server-fetch-typescript","version":"0.1.0","keywords":["mcp","server","fetch","playwright","markdown","html","Typescript"],"author":{"name":"tatn"},"license":"MIT","_id":"mcp-server-fetch-typescript@0.1.0","maintainers":[{"name":"tatn","email":"noguchi.tatsu@gmail.com"}],"homepage":"https://github.com/tatn/mcp-server-fetch-typescript","bugs":{"url":"https://github.com/tatn/mcp-server-fetch-typescript/issues"},"bin":{"mcp-server-fetch-typescript":"build/index.js"},"dist":{"shasum":"ed9aa3748baa731b608d0064a2b4106e801582cc","tarball":"https://registry.npmjs.org/mcp-server-fetch-typescript/-/mcp-server-fetch-typescript-0.1.0.tgz","fileCount":6,"integrity":"sha512-GVl00b+Bqxh1HZwqZY0PtIiWBTgvnmol4jKWVgVQhdS6ytY7XvOT6mvAAB5fU934F7/ODoKDU3vBeigjZRrX1Q==","signatures":[{"sig":"MEQCICFPaeN0yda+R7rx9J7E8SdvgZr+m8MGkN2wIoyIdz4CAiBmK+e7zI1XmIbzvUCU83DCfnAwvz6aNY9qBfkHN9l6+w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24572},"main":"./build/index.js","type":"module","types":"build/index.d.ts","gitHead":"72b13a946b7452288a1e12b410adddf67533fb83","scripts":{"test":"jest","build":"tsc && node --eval \"import('fs').then(fs => fs.chmodSync('build/index.js', '755'))\"","watch":"tsc --watch","prepare":"npm run build","inspector":"npx @modelcontextprotocol/inspector build/index.js"},"_npmUser":{"name":"tatn","email":"noguchi.tatsu@gmail.com"},"repository":{"url":"git+https://github.com/tatn/mcp-server-fetch-typescript.git","type":"git"},"_npmVersion":"10.8.2","description":"A Model Context Protocol server that provides web content fetching and conversion capabilities","directories":{},"_nodeVersion":"20.18.0","dependencies":{"axios":"^1.7.9","turndown":"^7.2.0","playwright":"^1.49.1","node-html-markdown":"^1.3.0","@modelcontextprotocol/sdk":"0.6.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.2.5","typescript":"^5.3.3","@types/jest":"^29.5.14","@types/node":"^20.11.24","@types/turndown":"^5.0.5"},"_npmOperationalInternal":{"tmp":"tmp/mcp-server-fetch-typescript_0.1.0_1737386251151_0.822050839580067","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"mcp-server-fetch-typescript","version":"0.1.1","description":"A Model Context Protocol server that provides web content fetching and conversion capabilities","main":"./build/index.js","type":"module","bin":{"mcp-server-fetch-typescript":"build/index.js"},"scripts":{"build":"tsc && node --eval \"import('fs').then(fs => fs.chmodSync('build/index.js', '755'))\"","prepare":"npm run build","watch":"tsc --watch","test":"jest","inspector":"npx @modelcontextprotocol/inspector build/index.js"},"repository":{"type":"git","url":"git+https://github.com/tatn/mcp-server-fetch-typescript.git"},"keywords":["mcp","server","fetch","playwright","markdown","html","Typescript"],"homepage":"https://github.com/tatn/mcp-server-fetch-typescript","license":"MIT","author":{"name":"tatn"},"dependencies":{"@modelcontextprotocol/sdk":"0.6.0","axios":"^1.7.9","node-html-markdown":"^1.3.0","playwright":"^1.49.1","turndown":"^7.2.0"},"devDependencies":{"@types/jest":"^29.5.14","@types/node":"^20.11.24","@types/turndown":"^5.0.5","jest":"^29.7.0","ts-jest":"^29.2.5","typescript":"^5.3.3"},"types":"build/index.d.ts","_id":"mcp-server-fetch-typescript@0.1.1","gitHead":"b3c42ddeb0e036b2a087b523bf3e12c5a536da5c","bugs":{"url":"https://github.com/tatn/mcp-server-fetch-typescript/issues"},"_nodeVersion":"20.18.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-UPKdtjzL3QJOditB94EYCJS9g/fxI1b4sXlZbG1JiFz0OT/F2ExYPvXy2A0JRO5yUivyoxtsp/6SXZMUpK5tqA==","shasum":"a93db1f93f7900ed2ab0b8431e38bd54aa32b4c3","tarball":"https://registry.npmjs.org/mcp-server-fetch-typescript/-/mcp-server-fetch-typescript-0.1.1.tgz","fileCount":6,"unpackedSize":25442,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDbkvm061xP4ZlM8Y2zHum5wyLHTeaicRQ+clkakT9NqwIgf4lp3YJ2Wk5oYqkXQ7FCNjl8agc6tW0A9g8iU9TLaV0="}]},"_npmUser":{"name":"tatn","email":"noguchi.tatsu@gmail.com"},"directories":{},"maintainers":[{"name":"tatn","email":"noguchi.tatsu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mcp-server-fetch-typescript_0.1.1_1741850849226_0.00999628367515859"},"_hasShrinkwrap":false}},"time":{"created":"2025-01-20T15:17:31.149Z","modified":"2025-03-13T07:27:29.558Z","0.1.0":"2025-01-20T15:17:31.343Z","0.1.1":"2025-03-13T07:27:29.389Z"},"bugs":{"url":"https://github.com/tatn/mcp-server-fetch-typescript/issues"},"author":{"name":"tatn"},"license":"MIT","homepage":"https://github.com/tatn/mcp-server-fetch-typescript","keywords":["mcp","server","fetch","playwright","markdown","html","Typescript"],"repository":{"type":"git","url":"git+https://github.com/tatn/mcp-server-fetch-typescript.git"},"description":"A Model Context Protocol server that provides web content fetching and conversion capabilities","maintainers":[{"name":"tatn","email":"noguchi.tatsu@gmail.com"}],"readme":"# mcp-server-fetch-typescript MCP Server\r\n\r\nA Model Context Protocol server that provides web content fetching and conversion capabilities. This server implements a comprehensive web content retrieval system with support for various formats and rendering methods, making it ideal for tasks ranging from simple data extraction to sophisticated web scraping.\r\n\r\n## Features\r\n\r\n### Tools\r\n\r\n- `get_raw_text` - Retrieve raw text content directly from URLs\r\n  - Takes `url` as a required parameter pointing to text-based resources\r\n  - Returns unprocessed text content without browser rendering\r\n  - Ideal for JSON, XML, CSV, TSV, or plain text files\r\n  - Best used when fast, direct access to source content is needed\r\n\r\n- `get_rendered_html` - Fetch fully rendered HTML content\r\n  - Takes `url` as a required parameter\r\n  - Returns complete HTML content after JavaScript execution\r\n  - Uses Playwright for headless browser rendering\r\n  - Essential for modern web applications and SPAs\r\n\r\n- `get_markdown` - Convert web content to Markdown format\r\n  - Takes `url` as a required parameter\r\n  - Returns well-formatted Markdown preserving structural elements\r\n  - Supports tables and definition lists\r\n  - Recommended for content archiving and documentation\r\n\r\n- `get_markdown_summary` - Extract and convert main content\r\n  - Takes `url` as a required parameter\r\n  - Returns clean Markdown focusing on main content\r\n  - Automatically removes navigation, headers, footers\r\n  - Perfect for article and blog post extraction\r\n\r\n## Installation\r\n\r\n### As a Global Package\r\n\r\n```bash\r\nnpm install -g mcp-server-fetch-typescript\r\n```\r\n\r\n### As a Project Dependency\r\n\r\n```bash\r\nnpm install mcp-server-fetch-typescript\r\n```\r\n\r\n## Usage\r\n\r\n### Using with Claude Desktop\r\n\r\nTo use with Claude Desktop, add the server config:\r\n\r\nOn MacOS: `~/Library/Application Support/Claude/claude_desktop_config.json`  \r\nOn Windows: `%APPDATA%/Claude/claude_desktop_config.json`\r\n\r\n```json\r\n\"mcpServers\": {\r\n  \"mcp-server-fetch-typescript\": {\r\n    \"command\": \"npx\",\r\n    \"args\": [\r\n      \"-y\",\r\n      \"mcp-server-fetch-typescript\"\r\n    ]\r\n  }\r\n}\r\n```\r\n\r\nor Add the following configuration:\r\n\r\n```bash\r\ngit clone https://github.com/tatn/mcp-server-fetch-typescript.git\r\ncd mcp-server-fetch-typescript\r\nnpm install\r\nnpm run build\r\n```\r\n\r\n```json\r\n\"mcpServers\": {\r\n  \"mcp-server-fetch-typescript\": {\r\n    \"command\": \"node\",\r\n    \"args\": [\r\n      \"/path/to/mcp-server-fetch-typescript/build/index.js\"\r\n    ]\r\n  }\r\n}\r\n```\r\n\r\n### Debugging\r\n\r\nTo debug the MCP server:\r\n\r\n```bash\r\nnpx @modelcontextprotocol/inspector npx -y mcp-server-fetch-typescript\r\n```\r\n\r\n```bash\r\nnpx @modelcontextprotocol/inspector node /path/to/mcp-server-fetch-typescript/build/index.js\r\n```\r\n\r\n\r\n","readmeFilename":"README.md"}