{"_id":"@enescinar/twitter-mcp","_rev":"3-d20cf8a996b6148af813f2d5501159fb","name":"@enescinar/twitter-mcp","dist-tags":{"latest":"0.3.0"},"versions":{"0.1.0":{"name":"@enescinar/twitter-mcp","version":"0.1.0","keywords":["mcp","modelcontextprotocol","server","twitter","claude"],"author":{"name":"Enes Cinar"},"license":"MIT","_id":"@enescinar/twitter-mcp@0.1.0","maintainers":[{"name":"enescinar","email":"enesila2004@hotmail.com"}],"homepage":"https://github.com/EnesCinr/twitter-mcp#readme","bugs":{"url":"https://github.com/EnesCinr/twitter-mcp/issues"},"bin":{"twitter-server":"build/index.js"},"dist":{"shasum":"5df70e011f952c7d237b51959251dce7023adcb0","tarball":"https://registry.npmjs.org/@enescinar/twitter-mcp/-/twitter-mcp-0.1.0.tgz","fileCount":7,"integrity":"sha512-fJ+fzADLgO5kjiXe163LM/1B8z8SPeTK54IjvgIhXvIgi5V1rLmJWHZbeEqSd8xpB5ywIU8oh8bTSqvwgFFnzg==","signatures":[{"sig":"MEQCIHZXI5IwEFTaEu2HtZi6em6o1rVcXGXE60FH+ZAvavrxAiAlr9uMwab9lD6WeXtZDIATJcahG3fDCUT038h7RbDq0w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16503},"main":"build/index.js","type":"module","gitHead":"59122e3f4a4fe88152165f72ceac79f26c82a1d9","scripts":{"build":"tsc","start":"node build/index.js","prepublishOnly":"npm run build"},"_npmUser":{"name":"enescinar","email":"enesila2004@hotmail.com"},"repository":{"url":"git+https://github.com/EnesCinr/twitter-mcp.git","type":"git"},"_npmVersion":"10.9.0","description":"A Model Context Protocol server allows to interact with Twitter, enabling posting tweets and searching Twitter.","directories":{},"_nodeVersion":"22.12.0","dependencies":{"zod":"^3.24.0","dotenv":"^16.4.7","twitter-api-v2":"^1.18.2","@modelcontextprotocol/sdk":"0.6.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.3.3","@types/node":"^20.11.24"},"_npmOperationalInternal":{"tmp":"tmp/twitter-mcp_0.1.0_1733885716394_0.9436792956028082","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@enescinar/twitter-mcp","version":"0.2.0","keywords":["mcp","modelcontextprotocol","server","twitter","claude"],"author":{"name":"Enes Cinar"},"license":"MIT","_id":"@enescinar/twitter-mcp@0.2.0","maintainers":[{"name":"enescinar","email":"enesila2004@hotmail.com"}],"homepage":"https://github.com/EnesCinr/twitter-mcp#readme","bugs":{"url":"https://github.com/EnesCinr/twitter-mcp/issues"},"bin":{"twitter-server":"build/index.js"},"dist":{"shasum":"758a30a8ad7296867c85524451c6ad48f24a4193","tarball":"https://registry.npmjs.org/@enescinar/twitter-mcp/-/twitter-mcp-0.2.0.tgz","fileCount":8,"integrity":"sha512-ckU0cFePWXeVpW5ynqzOIXImeymj0xt5qGoolYgyKJDfBcrAOKe+D4N41LN1+3aAYcoIScvHMZGjlA+D8KtT2A==","signatures":[{"sig":"MEYCIQDvG58UfYgvsEEkt9VqI6tlOSMGUCbUa6f60Pby4r6bIAIhAIuhgxUnZbn0yfJu8IIo6rLZKypk1DzGsXloW/eLYT7O","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18774},"main":"build/index.js","type":"module","gitHead":"a1944676556ea9831c43a680cca01f4ae073043b","scripts":{"build":"tsc","start":"node build/index.js","prepublishOnly":"npm run build"},"_npmUser":{"name":"enescinar","actor":{"name":"enescinar","type":"user","email":"enesila2004@hotmail.com"},"email":"enesila2004@hotmail.com"},"repository":{"url":"git+https://github.com/EnesCinr/twitter-mcp.git","type":"git"},"_npmVersion":"10.9.2","description":"A Model Context Protocol server allows to interact with Twitter, enabling posting tweets and searching Twitter.","directories":{},"_nodeVersion":"22.16.0","dependencies":{"zod":"^3.24.0","dotenv":"^16.4.7","mcp-evals":"^1.0.18","twitter-api-v2":"^1.18.2","@modelcontextprotocol/sdk":"0.6.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.3.3","@types/node":"^20.11.24"},"_npmOperationalInternal":{"tmp":"tmp/twitter-mcp_0.2.0_1750898600132_0.029215736111811497","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"_id":"@enescinar/twitter-mcp@0.3.0","bin":{"twitter-server":"build/index.js"},"bugs":{"url":"https://github.com/EnesCinr/twitter-mcp/issues"},"dist":{"shasum":"ea79427bb73a6f7cd26ef558290a68a040e027c4","tarball":"https://registry.npmjs.org/@enescinar/twitter-mcp/-/twitter-mcp-0.3.0.tgz","fileCount":8,"integrity":"sha512-K8k5PpO59iYPBpCUBwJ4TixH2/WTiBc7xbnVS0AUcMLNYRiX3LwWbzU6zuBWm4FwoD6lXVTvF08j9qLNwtexXQ==","signatures":[{"sig":"MEUCIBgJtAjL9dHhZ99E1YXkhc7ub2L5/pXZUXhkenG/fN4DAiEAiWaZdUOjGe89nZgPvtqos3/w887mBJyHhlcJ/1N6ysI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCxFOvRsQAwMksAPicU0kJCXko6Uf4hPwEi+YL7Bpt60QIhAKyBJt4yx5BNWwB5VEKTh65XP8EPHqM8f9rWI+AYP//R"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@enescinar%2ftwitter-mcp@0.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":27408},"main":"build/index.js","name":"@enescinar/twitter-mcp","type":"module","author":{"name":"Enes Cinar"},"gitHead":"81be7a0ce890ccffcfa3f4cf3fe2bc6c9be2a83e","license":"MIT","scripts":{"build":"tsc","start":"node build/index.js","prepublishOnly":"npm run build"},"version":"0.3.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"c980779c-8fa8-42f4-b46d-da8352cbbea0"}},"homepage":"https://github.com/EnesCinr/twitter-mcp#readme","keywords":["mcp","modelcontextprotocol","server","twitter","claude"],"repository":{"url":"git+https://github.com/EnesCinr/twitter-mcp.git","type":"git"},"_npmVersion":"11.21.1","description":"A Model Context Protocol server allows to interact with Twitter, enabling posting tweets and searching Twitter.","directories":{},"maintainers":[{"name":"enescinar","email":"enesila2004@hotmail.com"}],"_nodeVersion":"22.23.4","dependencies":{"zod":"^3.24.0","dotenv":"^16.4.7","mcp-evals":"^1.0.18","twitter-api-v2":"^1.18.2","@modelcontextprotocol/sdk":"0.6.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.3.3","@types/node":"^20.11.24"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/twitter-mcp_0.3.0_1793743681927_0.4520194994958575"}}},"time":{"created":"2024-12-11T02:55:16.262Z","modified":"2026-11-03T22:08:02.332Z","0.1.0":"2024-12-11T02:55:16.584Z","0.2.0":"2025-06-26T00:43:20.319Z","0.3.0":"2026-11-03T22:08:02.023Z"},"bugs":{"url":"https://github.com/EnesCinr/twitter-mcp/issues"},"author":{"name":"Enes Cinar"},"license":"MIT","homepage":"https://github.com/EnesCinr/twitter-mcp#readme","keywords":["mcp","modelcontextprotocol","server","twitter","claude"],"repository":{"url":"git+https://github.com/EnesCinr/twitter-mcp.git","type":"git"},"description":"A Model Context Protocol server allows to interact with Twitter, enabling posting tweets and searching Twitter.","maintainers":[{"name":"enescinar","email":"enesila2004@hotmail.com"}],"readme":"[![MseeP.ai Security Assessment Badge](https://mseep.net/pr/enescinr-twitter-mcp-badge.png)](https://mseep.ai/app/enescinr-twitter-mcp)\n\n# Twitter MCP Server\n\n[![smithery badge](https://smithery.ai/badge/@enescinar/twitter-mcp)](https://smithery.ai/server/@enescinar/twitter-mcp)\n\nThis MCP server allows Clients to interact with Twitter, enabling posting tweets, searching Twitter and reading your home timeline.\n\n<a href=\"https://glama.ai/mcp/servers/dhsudtc7cd\">\n  <img width=\"380\" height=\"200\" src=\"https://glama.ai/mcp/servers/dhsudtc7cd/badge\" alt=\"Twitter Server MCP server\" />\n</a>\n\n## Quick Start\n\n1. Create a Twitter Developer account and get your API keys from [Twitter Developer Portal](https://developer.twitter.com/en/portal/dashboard)\n\n2. Add this configuration to your Claude Desktop config file:\n\n**Windows**: `%APPDATA%\\Claude\\claude_desktop_config.json`  \n**macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`\n\n```json\n{\n  \"mcpServers\": {\n    \"twitter-mcp\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@enescinar/twitter-mcp\"],\n      \"env\": {\n        \"API_KEY\": \"your_api_key_here\",\n        \"API_SECRET_KEY\": \"your_api_secret_key_here\",\n        \"ACCESS_TOKEN\": \"your_access_token_here\",\n        \"ACCESS_TOKEN_SECRET\": \"your_access_token_secret_here\"\n      }\n    }\n  }\n}\n```\n\n3. Restart Claude Desktop\n\nThat's it! Claude can now interact with Twitter through three tools:\n\n- `post_tweet`: Post a new tweet, optionally as a reply (`reply_to_tweet_id`) or with up to 4 images (`media_paths`: local JPG, PNG, GIF or WEBP files)\n- `search_tweets`: Search for tweets\n- `get_home_timeline`: Get recent tweets from accounts you follow\n\n### `get_home_timeline`\n\nReturns your reverse-chronological home timeline (tweets from you and the accounts you follow), newest first. All parameters are optional:\n\n- `count`: number of tweets to return (1-100)\n- `since_days`: only return tweets from the last N days, e.g. `1`, `3` or `7` (max 30)\n- `start_time`: only return tweets created after this ISO 8601 UTC timestamp, e.g. `2024-01-01T00:00:00Z`\n\nUse either `since_days` or `start_time`, not both.\n\n> **Note:** The home timeline endpoint (`GET /2/users/:id/timelines/reverse_chronological`) is not available on the Free X API tier. You need a paid tier (Basic or higher); on the Free tier this tool returns a Twitter API error.\n\n## Example Usage\n\nTry asking Claude:\n- \"Can you post a tweet saying 'Hello from Claude!'\"\n- \"Can you post a tweet saying 'New logo!' with the image /Users/me/Pictures/logo.png\"\n- \"Can you search for tweets about Claude AI?\"\n- \"What have the accounts I follow posted in the last 3 days?\"\n\n## Troubleshooting\n\nLogs can be found at:\n- **Windows**: `%APPDATA%\\Claude\\logs\\mcp-server-twitter.log`\n- **macOS**: `~/Library/Logs/Claude/mcp-server-twitter.log`\n\n\n## Development\n\nIf you want to contribute or run from source:\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/EnesCinr/twitter-mcp.git\ncd twitter-mcp\n```\n\n2. Install dependencies:\n```bash\nnpm install\n```\n\n3. Build:\n```bash\nnpm run build\n```\n\n4. Run:\n```bash\nnpm start\n```\n\n\n\n## Running evals\n\nThe evals package loads an mcp client that then runs the index.ts file, so there is no need to rebuild between tests. You can load environment variables by prefixing the npx command. Full documentation can be found [here](https://www.mcpevals.io/docs).\n\n```bash\nOPENAI_API_KEY=your-key  npx mcp-eval src/evals/evals.ts src/index.ts\n```\n## License\n\nMIT\n","readmeFilename":"README.md"}